<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV>I highly suggest creating separate templates for static parts of your page, i.e. headers, footers, etc...  Have Smarty cache those templates, and in your 'more dynamic' templates, disable smarty caching and cache heavy with Memcached.  It would probably be much faster to use memcached than have Smarty recompile it's caches all the time on your more dynamic templates - which sounds worthless...  plus, it's a cache to disk...</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I would love to be able to do a benchmark on this method; disable Smarty caching and use memcached, vs pure Smarty caching.  </DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Or one could always use the Memcached plugin for Smarty :) It doesn't seem to be that popular though.</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 2:06 AM, Marcus Bointon wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><DIV><DIV>On 10 Sep 2007, at 08:50, Rob Sharp wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><SPAN class="Apple-style-span" style="border-collapse: separate; 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; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; ">Smarty will compile each of these sections individually and then cache the page as a whole. There's not currently (AFAIK) template-level caching in Smarty, but one of my co-workers has a working implementation that we're testing.<BR></SPAN></BLOCKQUOTE></DIV><DIV><BR class="webkit-block-placeholder"></DIV>That's not true. Smarty caches whole templates, but one template can be included in another, hence you can get selective caching of page elements. Read the docs carefully as it's quite fiddly: <A href="http://smarty.php.net/manual/en/caching.php">http://smarty.php.net/manual/en/caching.php</A><DIV>In particular notice {insert}, and also that plugins can choose whether their output is cached.<BR><DIV><BR class="webkit-block-placeholder"></DIV><DIV>Marcus<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; "><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; "><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><DIV style="">-- </DIV><DIV style="">Marcus Bointon</DIV><DIV style="">Synchromedia Limited: Creators of <A href="http://www.smartmessages.net">http://www.smartmessages.net</A>/</DIV><DIV style="">UK resellers of info@hand CRM solutions</DIV><DIV style="">marcus@synchromedia.co.uk | <A href="http://www.synchromedia.co.uk">http://www.synchromedia.co.uk</A>/</DIV></DIV><BR class="Apple-interchange-newline"></SPAN></SPAN></SPAN> </DIV><BR></DIV></DIV></BLOCKQUOTE></DIV><BR></BODY></HTML>