cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Unico Hommes <un...@hippo.nl>
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:
http://avalon.apache.org/excalibur/api/org/apache/excalibur/source/SourceValidity.html

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

Unico

enrico.maccias@free.fr wrote:

>Hi,
>
> 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? 
>
>
>thnks
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>For additional commands, e-mail: users-help@cocoon.apache.org
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message