Bug in cache 2.0.1???
| From: | Norbert Röcher | Date: | Fri, 12 Apr 2002 16:04:53 +0000 |
| Subject: | Bug in cache 2.0.1??? | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-3670@lists.php.net to get a copy of this message | ||
After changing from 2.0 to 2.0.1 my cached files don't expire at any
time, no matter what cache_lifetime is set. I'm using the following
logic:
$smarty = New Smarty;
$smarty -> cache_lifetime = $lifetime;
$smarty -> caching = $caching;
if (!$smarty->is_cached ('index.tpl', $cacheExt)){
if (!$pageSettings = smarty_getPageSettings ()){
// page does not exist
}
if (!$blocks = smarty_getPageBlocks ()){
// site is empty
}
$smarty -> assign ('blocks', $blocks);
$smarty -> assign ....
$smarty -> assign ....
and so on...
Worked fine on 2.0 but now >is_cached ('index.tpl', $cacheExt)< ALWAYS
returns TRUE and doesn't take care of any lifetime-setting.
I've already cleared all "old" cached and compiled files of 2.0 but it
still does not work. What the heck...? Any Ideas?
Regards,
Norbert