Re: [SMARTY] Bug in the caching system
| From: | Monte Ohrt | Date: | Thu, 11 Apr 2002 21:24:21 +0000 |
| Subject: | Re: [SMARTY] Bug in the caching system | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-3651@lists.php.net to get a copy of this message | ||
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:
loic wrote:-- Monte Ohrt <monte@ispi.net> Director of Technology, ispi Inc.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)