Re: [SMARTY] Re: Smaery integration with Zend Cache
| From: | Dr. Sergio Mujica | Date: | Thu, 30 Oct 2003 21:52:16 +0000 |
| Subject: | Re: [SMARTY] Re: Smaery integration with Zend Cache | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-10478@lists.php.net to get a copy of this message | ||
-----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-----