Code Comments
Programming Forum and web based access to our favorite programming groups.
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
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.