Re: [SMARTY] Caching parts of a page

From: Date: Tue, 23 Apr 2002 07:35:34 +0000
Subject: Re: [SMARTY] Caching parts of a page
References: 1 2 3  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-3845@lists.php.net to get a copy of this message
Hi, Andrei Zmievski wrote:
Therefor, it would be nice if we could specify for each function/plugin/tag, if it is cachable or not. Would this be feasible?
Who would specify it? You, the programmer? The designer?
The programmer of the tags. He's the one who knows whether he's writing something dynamic or static. The template designer doesn't (need to) know.
You can write a custom function and handle caching stuff yourself. It's pretty simple, just gather up content, write out a cache file and then keep using the file until it expires.
That doesn't do it. Because the function can be used inside a larger template that is cached, when the function shouldn't be. Greetings, Ivo -- Ivo Jansch <ivo@ibuildings.nl> ibuildings.nl BV - information technology http://www.ibuildings.nl

« previous php.smarty.general (#3845) next »