Re: [SMARTY-DEV] Changed cache_lifetime-handling and added expiration date
| From: | Norbert Röcher | Date: | Fri, 12 Apr 2002 18:10:33 +0000 |
| Subject: | Re: [SMARTY-DEV] Changed cache_lifetime-handling and added expiration date | ||
| References: | 1 2 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-57@lists.php.net to get a copy of this message | ||
"Monte Ohrt" <monte@ispi.net> schrieb im Newsbeitrag
news:3CB72E5D.1030600@ispi.net...
> This sounds fine to me, although I'm not sure how it handles the case
> where $this->_cache_info['expires'] is not set (should only happen
when
> upgrading Smarty) Will it work as expected (regenerate cache), or
must
> Smarty provide for this test, or all cache files be erased first?
As you expect, it will print out an error (warning) after the upgrade.
Cleaning the cache should solve this "problem".
Yes, it regenerates the template if the expiration-time if < time().
Regards,
Norbert