RE: [SMARTY] Re: Smaery integration with Zend Cache
| From: | Marshall Sorenson | Date: | Thu, 30 Oct 2003 22:16:32 +0000 |
| Subject: | RE: [SMARTY] Re: Smaery integration with Zend Cache | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-10479@lists.php.net to get a copy of this message | ||
Sergio,
Thanks for the response. I guess I could have been a little more clear,
sorry!
I am already using PHP Accelerator to cache scripts in shared memory. The
type of caching I'm referring to is the functionality provided by Smarty
caching, more specifically the $smarty->is_cached() method, which is what I
currently use for content caching.
I am already well on track to switch to Zend Accelerator for various
reasons, and am interested in the functionality offered by Zend Cache which
piggy backs on the Zend Accelerator. I'd be grateful for feedback from
anyone who uses Zend Cache in combination with Smarty and maybe integrated
it with Smarty to provide a similar solution to Smarty caching. Zend Cache
is also able to gzip the cached files and store on disk, so it is a single
solution to caching and negotiated compression, as opposed to also using
gzip in apache.
-Marshall
____________________________________
"If at first the idea is not absurd,
then there is no hope for it."
- Albert Einstein
> -----Original Message-----
> From: Dr. Sergio Mujica [mailto:sergio.mujica@terra.cl]
> Sent: Thursday, October 30, 2003 4:52 PM
> To: smarty-general@lists.php.net
> Subject: Re: [SMARTY] Re: Smaery integration with Zend Cache
>
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Marshall,
>
> I would also encourage you to use Turck mmcache. The byte code of
> your Smarty
> compiled files will be cached by mmcache. You can configure
> mmcache to keep
> cached files in memory, allocating as much memory as you feel
> necessary . On
> the other hand if you intend to cache dynamic content mmcache has
> functions
> to do that, but... if your dynamic contents come from a
> relational database,
> why don't you simply use ADOdb, that lets you cache recordsets?
>
> You can find ADOdb at
>
> http://php.weblogs.com/ADOdb
>
> It is a really fine piece of software for developping with PHP.
>
> Enjoy,
>
> Sergio Mujica
>
> El día Thursday 30 October 2003 18:21, Manuel Lemos escribió:
> > Hello,
> >
> > On 10/30/2003 06:43 PM, Marshall Sorenson wrote:
> > > Has anybody attempted to use the Zend Cache (Enterprise), particularly
> > > the partial page caching functions, in place of native Smarty
> caching? I
> > > am working on a project that generates 1000s of Smarty cache
> files, and
> > > with changes that we are making, may generate 10000+. Trying
> to decide
> > > if its worth the effort to give Zend Cache a trial run.
> > >
> > > I was thinking it would be cool to write plugin block
> functions for these
> > > Zend caching functions:
> > >
http://www.zend.com/store/products/performance_partial_output_caching.php
> >
> > Also thinking of embedding those functions in templates as PHP using
> > {php}{/php}, to make it easy to cache large chunks of dynamic content
> > spanning 2 or more non-nested templates. I think it may be possible to
> > acheive a similar result with native Smarty caching, but probably would
> > not be fun to try.
> >
> > Any thoughts?
>
> I am not sure if caching that volume of files in shared memory is a good
> idea as it may cause problems in your system.
>
> Anyway, you may want to also try Turck MMCache that has functions for
> content caching:
>
> http://turck-mmcache.sourceforge.net/
>
> --
>
> Regards,
> Manuel Lemos
>
> Free ready to use OOP components written in PHP
> http://www.phpclasses.org/
- --
atte.
Sergio Mujica
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE/oYgXQNGF9Nawny4RAmuGAJ9bD7TavRBwg+OtnsTb/MtvJ929ZwCfQnY1
I69x/4kjY9wz4WjYVJGUGGQ=
=WYsT
-----END PGP SIGNATURE-----
--
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php