Re: Re: [SMARTY] Cache best practices
| From: | Wom.bat | Date: | Mon, 07 Apr 2003 15:39:40 +0000 |
| Subject: | Re: Re: [SMARTY] Cache best practices | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-9168@lists.php.net to get a copy of this message | ||
> Hello,
>
> thank you for you answer. I think it very interesting the outputfilter
> idea.
>
> But, in the firts case, if the template couldn´t really be cached is the
> suggestion I made
>
> $smarty->display("header.tpl")
> $smarty->cache = false;
> $smarty->display("left.tpl")
> $smarty->cache = true;
> $smarty->display("center.tpl")
> ....
> ....
>
> correct ?
yep, right :) but you should do a
$smarty->cache = true;
before the header inclusion
by the way: don't forget to add the mailing list adress for "cc" the next
time you reply to a message ;)
Regards,
David