Memcache and Smarty

Brian P Brooks Brian.Brooks at Colorado.EDU
Mon Sep 10 01:08:23 UTC 2007


You must have a PHP file that calls the smarty engine.  In that file  
you can assign variables to Smarty.  Do you caching from that file,  
and then pass the cached contents to Smarty's engine via something  
like Smarty::assign()

Brian Brooks
brian.brooks at colorado.edu
Mobile: 303.319.8663



On Sep 10, 2007, at 12:24 AM, J A wrote:

> I've read that it's not good to use Memcache to cache MySQL  
> queries, as the MySQL buffer already does this.  Instead, I should  
> cache the html output.  Is this what one should always do?
>
> I'm running PHP and using Smarty for templates.  The PHP throws the  
> output to Smarty, and Smarty is the thing that outputs the html.   
> Thus my application is not able to grab the html output.  Or is  
> there a way to do it?
>
> For instance, in a page I might have a "about us" section, a  
> "friends list", and a "blog list".  I'd like to cache each of those  
> sections.
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.danga.com/pipermail/memcached/attachments/20070909/9c7a3932/attachment.htm


More information about the memcached mailing list