To my understanding of the docs, eternal means "never expire" (thus time
to idle and time to live are infinite) but it does not mean "never
flush" to a lower cache (ie to disk).

On 2014-05-29 12:13, Carlos Munoz wrote:
> In zanata-war/src/main/resources/ehcache.xml:
> 
>> @@ -83,10 +85,10 @@
>>    <cache
>>      name="org.zanata.service.impl.VersionStateCacheImpl.versionStatisticCache"
>>      maxElementsInMemory="10000"
>> -    eternal="false"
>> -    timeToIdleSeconds="86400"
>> -    timeToLiveSeconds="0"
>> -    overflowToDisk="false"
>> +    eternal="true"
>> +    overflowToDisk="true"
>> +    diskPersistent="true"
>> +    maxBytesLocalDisk="50000000"
> 
> I think we need to reevaluate the eternal flag. From the ehcache docs,
> it sounds like eternal keeps the entry in memory forever (overriding the
> TTI and TTL settings). OverflowToDisk and diskPersistent sound good, but
> we might want to bring back TTI and TTL.
> 
> @seanf <https://github.com/seanf> thoughts?
> 
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/zanata/zanata-server/pull/460/files#r13166265>.
> 


-- 
Sean Flanigan

Senior Software Engineer
Engineering - Internationalisation
Red Hat