Re: [SMARTY] caching, continued...
| From: | Mrak | Date: | Mon, 24 May 2004 13:15:47 +0000 |
| Subject: | Re: [SMARTY] caching, continued... | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-11401@lists.php.net to get a copy of this message | ||
Yeah, turn it on in the code before you call display or fetch and then turn it off afterwards. This is how I have made my RSS Reader plugin for smarty:
http://smarty.incutio.com/?page=RSSLoad
have fun,
alex
Travis Low wrote:
I've been reading everything I can find out about Smarty caching. It appears that when you turn on caching, everything is cached, and the way to avoid caching certain templates is to include them via "insert". I suppose another way would be to call clear_cache() prior to rendering the template. Is that correct? What I'd like to do is the opposite -- leave caching off in general, but turn it on for specific templates. Is there a way to do this? cheers, Travis