Jan Haderka ha scritto:
Next step is to remove that bypasses and try to flush cash every 15 minutes for these pages..

For this you need to write your own CachePolicy.

Maybe in next releases new caching mechanisms can be implemented by default ;-)

Have a look at info.magnolia.module.cache.cachepolicy.Default for an
example. This policy will suggest caching the page only once and then
always suggest to use cached copy of the requested page. So in your case
what you want to do in shouldCache() method is to have extra condition
like:

if (request.uri matches listOfPagesToBeFlushedEvery15Min) {
  caheEntry = getCacheEntry(key)
  if (cacheEntry.created + 15min < CurrentTime) {
    return CachePolicyResult.store;
  }
}

Only one question: how can I get this amount: cacheEntry.created ?

Jan

Thanks a lot, Jan, really..
Matteo


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to