I am new to Java Caching System. I am using it on my website. Here is the cache.ccf file:
jcs.default.cacheattributes=org.apache.commons.jcs3.engine.CompositeCacheAttributes
jcs.default.cacheattributes.MaxObjects=5000
jcs.default.cacheattributes.MemoryCacheName=org.apache.commons.jcs3.engine.memory.lru.LRUMemoryCache
jcs.default.cacheattributes.UseMemoryShrinker=false
jcs.default.elementattributes=org.apache.commons.jcs3.engine.ElementAttributes
jcs.default.elementattributes.IsEternal=true
jcs.default.elementattributes.MaxLife=-1
#7 days
jcs.default.elementattributes.IdleTime=604800
jcs.default.elementattributes.IsSpool=false
jcs.default.elementattributes.IsRemote=false
jcs.default.elementattributes.IsLateral=true
# ------------- AUXILIARY CACHE REGION ---------------
jcs.auxiliary.DC=org.apache.commons.jcs3.auxiliary.disk.indexed.IndexedDiskCacheFactory
jcs.auxiliary.DC.attributes=org.apache.commons.jcs3.auxiliary.disk.indexed.IndexedDiskCacheAttributes
jcs.auxiliary.DC.attributes.DiskPath=E:/jcs
# ------------- REGION pastactivity---------------
jcs.region.pastactivity=
jcs.region.pastactivity.cacheattributes=org.apache.commons.jcs3.engine.CompositeCacheAttributes
jcs.region.pastactivity.cacheattributes.MaxObjects=5000
jcs.region.pastactivity.cacheattributes.MemoryCacheName=org.apache.commons.jcs3.engine.memory.lru.LRUMemoryCache
jcs.region.pastactivity.cacheattributes.UseMemoryShrinker=false
jcs.region.pastactivity.elementattributes=org.apache.commons.jcs3.engine.ElementAttributes
jcs.region.pastactivity.elementattributes.IsEternal=false
#3 days
jcs.region.pastactivity.elementattributes.MaxLife=259200
jcs.region.pastactivity.elementattributes.IdleTime=259100
jcs.region.pastactivity.elementattributes.IsSpool=false
jcs.region.pastactivity.elementattributes.IsRemote=false
jcs.region.pastactivity.elementattributes.IsLateral=true
The cache can really improve the site speed, and I can see it. However, the objects stored in cache don't seem to stay in cache for the duration I expect. For example, for objects stored in the pastactivity region, I hope they stay there for 3 days. In tests, they seem to stay in cache for a much shorter period. Is there anything wrong with the settings in the cache.ccf file?