@Hector With 0 it expires immediatelly.

@Vladas Thanks, but I wanted default to be forever.

Fixed with

resources.cachemanager.file.frontend.options.lifetime = 9999999999

since that's what Zend_Cache do if null.

Regards,
Saša Stamenković


On Wed, Feb 3, 2010 at 5:20 PM, Vladas Diržys [via Zend Framework Community]
<[email protected]<ml-node%[email protected]>
> wrote:

> Zend_Cache_Core::load() Second parameter enables you to ignore validity
> testing:
>
> $cache->load('my_object', true); //should not test expiration
>
> More info:
> http://framework.zend.com/apidoc/1.10/Zend_Cache/Zend_Cache_Core.html#load
>
> --
> Pagarbiai,
> Vladas Diržys
> Tel.: +370 620 69020
> www.dirzys.com
>
>
> On Wed, Feb 3, 2010 at 16:02, umpirsky <[hidden 
> email]<http://n4.nabble.com/user/SendEmail.jtp?type=node&node=1461358&i=0>
> > wrote:
>
>>
>> Hi.
>>
>> I have in my config:
>>
>> resources.cachemanager.file.frontend.name = Core
>> resources.cachemanager.file.frontend.options.lifetime = null
>> resources.cachemanager.file.frontend.options.automatic_serialization =
>> true
>> resources.cachemanager.file.backend.name = File
>> resources.cachemanager.file.backend.options.cache_dir = APPLICATION_PATH
>> "/../data/cache"
>>
>> In order to have default lifetime set to null (forever). But looks like
>> it's
>> not possible from config file.
>>
>> Am I right?
>>
>> Regards,
>> Sasa Stamenkovic.
>> --
>> View this message in context:
>> http://n4.nabble.com/Unable-to-set-infinite-lifetime-with-cache-manager-tp1461182p1461182.html
>> Sent from the Zend Framework mailing list archive at Nabble.com.
>>
>
>
>
> ------------------------------
>  View message @
> http://n4.nabble.com/Unable-to-set-infinite-lifetime-with-cache-manager-tp1461182p1461358.html
> To unsubscribe from Unable to set infinite lifetime with cache manager, click
> here< (link removed) ==>.
>
>
>

-- 
View this message in context: 
http://n4.nabble.com/Unable-to-set-infinite-lifetime-with-cache-manager-tp1461182p1468444.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to