> 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.
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;
  }
}

If you want to see some other CachePolicies have a look at
magnolia-module-cache-advanced which contains some special policies (tho
nothing like what you want; those policies are designed to lower the
load on the server after republishing some pages)

Jan


----------------------------------------------------------------
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