cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From toto <enrico.macc...@free.fr>
Subject caching - getValidity()
Date Wed, 03 Mar 2004 19:37:34 GMT
Hi,

    i'm having trouble with the getValidity() method.
i'd like to invalidate the cached response under certain condition :

public SourceValidity getValidity() {
    if (externalCondition) {
        return null;
    } else {
        return new NOPValidity();
    }
}

however, once  NOPValidity is returned, the validity of the cached response
is never checked again  (unless the new and the cached keys differ). So, 
how
can i have the validiy checked everytime the component is used?

thnx in advance


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


Mime
View raw message