cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rune Sandnes" <>
Subject Destroying cached object
Date Sun, 14 Apr 2002 10:32:28 GMT

I have looked at various methods of deciding when a cached object is no
valid (including DBPrism cache invalidator suggested by Marcelo Ochoa)

What I really want to do is simple, cache all pages for 30 minutes with 
DeltaTimeCacheValidity, but be able to destroy the cache from the
Management System. When working with documents in the CMS they are
with a nocache parameter, and Cocoon serves them uncached.

     public CacheValidity generateValidity() {
        // If we are called with nocache parameter we do not cache
	  if ( request.getParameter("nocache") == null ) {
	     return new DeltaTimeCacheValidity(30);
	  } else {
	     return null;

What I was hoping for was that when CacheValidity returns null, it will
destroy the cached object for good, but that doesn't seem to happen. The

next time the document is called from the site without the nocache
I get the old version (for the duration of the 30 minute cache period).

So, is there any way I can instruct Cocoon to destroy a particular
object permanently?

Cocoon 2.0.2, Tomcat 4.0.3


Please check that your question has not already been answered in the
FAQ before posting. <>

To unsubscribe, e-mail: <>
For additional commands, e-mail: <>

View raw message