cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Unico Hommes <>
Subject Re: caching question
Date Wed, 03 Mar 2004 15:25:40 GMT

My first guess would be to check the implementation of the Validity 
object you return from getValidity(). The Validity object can assert 
validity by itself without the Cache having to retrieve the current 
Validity to compare it to.

Some descirption about this can be found here:

If the no-argument isValid() method returns SourceValidity.VALID the 
Cache won't call the getValidity() method of your component.

Unico wrote:

> i've got problems with the getValidity() method.
>On the first request my caching component's response gets cached, 
>getKey() and getValidity() are called, everything's ok.
>On the next request (with the same key generated), getValidity() is not called, 
>the cache is used.
>What should i do to have my getValidity() method called when cachedKey and 
>new key match? 
>To unsubscribe, e-mail:
>For additional commands, e-mail:

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

View raw message