ZF-5733: Add setLifeTime into the cache class
Description
A setLifeTime() method would be very-very handful to change the lifetime without initialize a new cache object. At the moment we must have as much cache object as much lifetime we want use instead of using one cache object.
if(!$cache->start('mypage')) {
echo 'This is cached with init lifetime ('.time().') ';
$cache->end();
}
$cache->setLifeTime( 3 );
if(!$cache->start('mypage2')) {
echo 'This is cached with 3 seconds lifetime ('.time().') ';
$cache->end();
}
Comments
Posted by Fabien MARTY (fab) on 2009-02-10T11:01:15.000+0000
please have a look at the API :
http://framework.zend.com/apidoc/core/…
you can specify an alternative lifetime in the save method or you can use the setLifetime() method which... already exists ! :-)
Posted by Fabien MARTY (fab) on 2009-02-10T13:58:50.000+0000
sorry, I read too fast your issue
I didn't see you talk about the Page frontend
Posted by Fabien MARTY (fab) on 2009-04-09T00:14:41.000+0000
in the current version, you can pass a specificLifetime for the end() method