caching questions

From: Date: Thu, 04 Mar 2004 18:45:30 +0000
Subject: caching questions
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-11060@lists.php.net to get a copy of this message
I'm new to caching and still am a little muddled after reading the documentation. - Does it matter if I set $smarty->caching=true; or $smarty->caching=2; if I am only going to call $smarty->display() once on one template for this instantiation of $smarty? - If I have a static header and footer, but dynamic content in the middle, which of the following is appopriate: // this: $smarty->caching = 2; $smarty->lifetime = -1; $smarty->display('static_header.tpl'); $smarty->lifetime = 0; $smarty->display('dynamic.tpl'); $smarty->lifetime = -1; $smarty->display('static_footer.tpl'); // or this: $smarty->caching = true; $smarty->lifetime = -1; $smarty->display('static_header.tpl'); $smarty->caching = false; $smarty->display('dynamic.tpl'); $smarty->caching = true; $smarty->display('static_footer.tpl'); // or maybe have two instantiations, $smarty_caching and // $smarty_nocaching? // or some other way? Thanks for any help, bill -- Bill Comisky bcomisky@pobox.com

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