Code Comments
Programming Forum and web based access to our favorite programming groups.Hi all,
Well I have seen technical note in the manual:
Technical Note: If you want to give certain templates their own cache lifeti
me, you could do
this by setting $caching = 2, then set $cache_lifetime to a unique value jus
t before calling
display() or fetch().
Is it possible to set $cache_lifetime dinamicaly on the template for example
pseudo code:
index.tpl
----------------------------------------------
// set $cache_lifetime = 10000;
{include file="header.tpl" }
// set $cache_lifetime = 30;
{include file="banner.tpl" }
// set $cache_lifetime = 1800 + $randommnes;
{include file="content.tpl" }
// set $cache_lifetime = 10000;
{include file="footer.tpl" }
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.