Re: [SMARTY] Advanced caching
| From: | messju mohr | Date: | Mon, 19 Apr 2004 18:13:19 +0000 |
| Subject: | Re: [SMARTY] Advanced caching | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-11282@lists.php.net to get a copy of this message | ||
On Mon, Apr 19, 2004 at 07:11:11PM +0200, Olivier DOUCET - REAGI wrote:
> Hi everybody.
>
> I would like to use the caching method in smarty, but in a particular way :
>
> My php is full of SQL query, and I want the result to be cached in smarty
> ( = smarty won't do the querys again when cache is generated; I want
> templates to be cached with all the data already in tpl).
>
> Is it possible to do it ? If not, what should I use ?
you want to use is_cached():
http://smarty.php.net/manual/en/api.is.cached.php
> Thx a lot.
>
> Olivier DOUCET