Re: caching question
| From: | Oguz Altun | Date: | Mon, 14 May 2001 04:05:37 +0000 |
| Subject: | Re: caching question | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-757@lists.php.net to get a copy of this message | ||
----- Original Message -----
From: "Monte Ohrt" <monte@ispi.net>
To: "Andreas Kaiser" <info@vocote.de>; "Smaty ML"
<smarty@lists.ispi.net>
Sent: Friday, May 11, 2001 7:58 PM
Subject: [smarty] Re: caching question
> this brings an interesting idea about.
>
> {include file="blah.tpl" cache=no}
Outstanding idea. How about generalizing it a bit to let user chose caching
or not caching any block of code he wants.
Eg st like:
$smarty->caching = true;
$smarty->no_caching {
query the db and show results...
}
the rest can be cached...
Also this can be done in template files:
Eg:
{caching off}
some dynamic content...
{/caching}