I have looked at various methods of deciding when a cached object is no
longer 
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
Content
Management System. When working with documents in the CMS they are
called
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
parameter,
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
cached
object permanently?

Cocoon 2.0.2, Tomcat 4.0.3

Thanks,
Rune,
Trondheim,
Norway

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to