Bug!? Outputfilters don't work like in previous versions (post-2.5.0-cvs)
| From: | Wom.bat | Date: | Sat, 26 Apr 2003 21:02:04 +0000 |
| Subject: | Bug!? Outputfilters don't work like in previous versions (post-2.5.0-cvs) | ||
| Groups: | php.smarty.dev | ||
| Request: | Send a blank email to php-smarty-dev+get-1271@lists.php.net to get a copy of this message | ||
Hi folks...
I don't like {insert}s, because they are rather slow, but I needed to
display the number of comments on news. As the news are cached (the
template(s), of course), I used a replacer token (sth like
#replacer-comments-news-id#) and let an outputfilter run over it.
This always worked perfect until now: it now seems that the output filter
gets cached, too. The display doesn't change after I add a comment, it
remains at the previous value. If I switch force_compile to true, everything
works as usual. Maybe this issue exists since longer ago, I don't know
exactly, as I usually am developing with force_compile to true and so didn't
recognize the bug (is it a bug!?). I'm not exactly sure, but I'd say it
worked with 2.4.x
I use one template index.tpl in which I include the rest of the site (php
files, not templates directly) via include_php. all php files are using the
same smarty object. in the php files, I enable or disable caching and then
display the template.
Maybe I'm doing something in the wrong way, if so, please let me know...
Regards,
David