[opencms-dev] Is it possible to configure aging of CmsFlexCache objects/entries?

Mario Jäger m.jaeger at alkacon.com
Thu Mar 10 12:31:37 CET 2011


Hi,

You can use the FlexCache directive "timeout={integer}" in the "cache" 
property. This directive sets a timeout at which a cached resource will 
be invalidated. The given integer represents a minute - interval which 
starts at 0.00h of the day the cache key gets calculated. A value of 60 
would indicate that this entry will reach it's timeout at the beginning 
of every full hour, a timeout of 20 indicates that the entry is 
invalidated at x.00, x.20 and x.40 of every hour etc. A "timed out" 
resource will stay in the cache and will be re-calculated the next time 
it gets requested. Setting that FlexCache directive on a folder, makes 
that FlexCache directive also valid for the files in it, if the "cache" 
property is not explicitly set on a sub resource.

Kind Regards,
Mario.

Am 10.03.2011 09:54, schrieb Olaitan Olamilehin:
> Hi,
>
> Basically, is it possible to define the time-to-age each cache entry
> that is stored in OpenCMS cache.
>
> Something similar to ehcache "timeToLiveSeconds" and
> "maxElementsInMemory" config parameters.
>
> If it is possible, can this be configured per module?
>


-- 
-------------------
Mario Jäger

Visit OpenCms Days 2011 Conference and Expo
May 9 to May 10 2011 in Cologne, Germany
http://www.opencms-days.org

Alkacon Software GmbH  - The OpenCms Experts
http://www.alkacon.com - http://www.opencms.org



More information about the opencms-dev mailing list