Re: [SMARTY] Bug in cache 2.0.1???

From: Date: Fri, 12 Apr 2002 17:48:09 +0000
Subject: Re: [SMARTY] Bug in cache 2.0.1???
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-3671@lists.php.net to get a copy of this message
Try the CVS version, some logic with the cache_lifetime has been changed. Norbert Röcher wrote:
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
-- Monte Ohrt <monte@ispi.net> Director of Technology, ispi Inc.

« previous php.smarty.general (#3671) next »