Re: [SMARTY] caching questions

From: Date: Thu, 04 Mar 2004 23:06:38 +0000
Subject: Re: [SMARTY] caching questions
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-11066@lists.php.net to get a copy of this message
I asked the same thing a while ago and Messju was kind enough to explain. The problem with this approach:
// this: $smarty->caching = 2; $smarty->lifetime = -1; $smarty->display('static_header.tpl'); etc.
Is that the cache will be written out, even if it's never used. So it's better if you use this approach:
// or this: $smarty->caching = true; $smarty->lifetime = -1; $smarty->display('static_header.tpl'); $smarty->caching = false; $smarty->display('dynamic.tpl');
Since this way the cache is never written, and you don't suffer the performance penalty. Vonleigh Simmons [vanlei] <www.illusionart.com/pi/>

« previous php.smarty.general (#11066) next »