Re: SV: Assign in prefilter
| From: | Andrei Zmievski | Date: | Mon, 25 Mar 2002 14:19:36 +0000 |
| Subject: | Re: SV: Assign in prefilter | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-3323@lists.php.net to get a copy of this message | ||
On Sat, 23 Mar 2002, Andreas Heintze wrote:
> OK but this makes assigning vars in a prefilter useless in a cached
> page.
> Since the assigning is done in the prefilters, which is not run when the
> cache expires. It then runs the compiled template again but it the vars
> isn't assigned and therefore is missing in the output of the new cache.
You know, I don't get it. What exactly are you trying to blame for this
problem? Smarty is working exactly as specified in the documentation --
prefilters are only supposed to run when the template is recompiled.
They have nothing to do with cache.
-Andrei
"The only true currency in this bankrupt world is what we share with each
other when we're uncool." -- Lester Bangs, from the film 'Almost Famous'