Re: Smarty caching problem after $smarty->clear_cache()
| From: | pt2002 | Date: | Wed, 01 Sep 2004 20:25:22 +0000 |
| Subject: | Re: Smarty caching problem after $smarty->clear_cache() | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-11749@lists.php.net to get a copy of this message | ||
Hi
clear_all_cache() should do the job.
Regards
"Martin Kjeldsen" <martin@iagency.dk> escreveu na mensagem
news:200409012001.i81K1Uki013641@fitch4.uni2.net...
> 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