<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV>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()</DIV><BR><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV>Brian Brooks</DIV><DIV><A href="mailto:brian.brooks@colorado.edu">brian.brooks@colorado.edu</A></DIV><DIV>Mobile: 303.319.8663</DIV><DIV><BR class="khtml-block-placeholder"></DIV><BR class="Apple-interchange-newline"></SPAN> </DIV><BR><DIV><DIV>On Sep 10, 2007, at 12:24 AM, J A wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><DIV>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?</DIV> <DIV> </DIV> <DIV>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? </DIV> <DIV> </DIV> <DIV>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.</DIV> <DIV> </DIV></BLOCKQUOTE></DIV><BR></BODY></HTML>