SV: Assign in prefilter
| From: | Andreas Heintze | Date: | Sat, 23 Mar 2002 01:41:09 +0000 |
| Subject: | SV: Assign in prefilter | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-3290@lists.php.net to get a copy of this message | ||
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.
/Andreas
-----Ursprungligt meddelande-----
Från: Andrei Zmievski [mailto:andrei@ispi.net]
Skickat: den 22 mars 2002 00:01
Till: Andreas Heintze
Kopia: smarty@lists.ispi.net
Ämne: Re: [smarty] Assign in prefilter
On Thu, 21 Mar 2002, Andreas Heintze wrote:
> Found a problem when assigning vars in a prefilter.
> (using the modified version of Smarty.class.php)
>
> If using cache, when the cache expires or is cleared with
> $smarty->clear_all_cache(); and no recompile is done!
> The prefilter is not run and the assigned vars is missing in the
output!
>
> Can this be fixed somehow?
Prefilters are only run when the template is recompiled, that is by
design. It's not a bug.
-Andrei
Linux is like living in a teepee.
No Windows, no Gates, Apache in house.
- Usenet signature