Re: [SMARTY] Bug in the caching system
| From: | Monte Ohrt | Date: | Thu, 11 Apr 2002 21:28:33 +0000 |
| Subject: | Re: [SMARTY] Bug in the caching system | ||
| References: | 1 2 3 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-3652@lists.php.net to get a copy of this message | ||
Hmm, on second thought, if caching=true and cache_lifetime=0, maybe we should let the cache files regenerate every hit. Setting caching=false might cause some problems if you are expecting the cache files to get updated. Of course force_compile overrides the cache settings regardless...
Monte Ohrt wrote:
I think we'll change it to the latter, it does make better sense. (-1 = unlimited) so cache_lifetime=0 is the same as no caching (will always regenerate). So if you have lifetime set to 0, we might just set caching=false in the logic. Any objections? Andreas Kossmeier wrote:-- Monte Ohrt <monte@ispi.net> Director of Technology, ispi Inc.loic wrote:I'm new here... I'm using smarty 2 after a big use of smarty 1.4 I have found a little bug in the way to refresh the cache in smarty 2.reported this bug 3 days ago on [smarty-dev]. another issue mentioned there was: : #2 cache_lifetime values and documentation : : i know cache handling for cache_lifetime = 0 has changed several times : in the past currently the comment near the variable definition is: : : // number of seconds cached content will persist. : // 0 = never expires. default is one hour (3600) : : IMO the definition of a cache_lifetime *has* to be: : : 1. > 0 caching for the appropriate lifetime : 2. = 0 no caching : 3. < 0 never expire (usually cache_lifetime = -1)