Monday 08 March 2004 9:36:51 am
I am curious as to whether it is more efficient to use a cache block with an expiry in the page layout, or to use the set-block within a file that is pulled via an include from the page layout. For example, I could use either of the two following methods to call an include that should change every two hours: <b>In <i>pagelayout.tpl</i></b>
{cache-block expiry=7200}
{include uri="design:rotating_header.tpl"}
{/cache-block}
<b>In <i>rotating_header.tpl</i> (instead of using the above cache-block)</b> {set-block scope=root variable=cache_ttl}7200{/set-block}
They both do the same thing, but I am curious if page rendering will be any faster with one, than the other. Alex
Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]
<i>When in doubt, clear the cache.</i>
|