Smarty caching problem after $smarty->clear_cache()
| From: | Martin Kjeldsen | Date: | Wed, 01 Sep 2004 20:01:34 +0000 |
| Subject: | Smarty caching problem after $smarty->clear_cache() | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-11748@lists.php.net to get a copy of this message | ||
Hi,
I've a big problem with Smarty's caching. I've a structure where a main
template includes other parts of the page. I use the same template for every
other page, but include a different template for the content (content
template).
The caching works just right until I delete the cached version with
clear_cache() or manually delete the files. Then it outputs stuff like this
f8d698aea36fcbead2b9d5359ffca76f{insert_cache
a:2:{s:4:"name";s:13:"phpads_banner";s:5:"width";s:7:"468-728";}}f8d698aea36
fcbead2b9d5359ffca76f
which is stuff for inserts on the page.
There is two files for the content template in templates_c (an .inc and
.php) and if I clear the .php file together with the cache it works just
fine.
The funny thing is that an almost similar content template doesn't give this
problem and I don't know why.
Any help is greatly appreciated.
Martin