Memcache and Smarty

K J sanbat at gmail.com
Mon Sep 10 07:14:25 UTC 2007


So you're basically saying, cache the output right before sending it
to Smarty, and not cache the end html result.  Is that right?



On 9/10/07, Brian P Brooks <Brian.Brooks at colorado.edu> wrote:
>
> 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.
>
>


More information about the memcached mailing list