> From: Charles Yates [mailto:[EMAIL PROTECTED] 
> 
>   It uses DeltaTimeCacheValidity which accepts a time value in its
> constructor:
> 
> http://xml.apache.org/cocoon/apidocs/org/apache/cocoon/caching
> /DeltaTimeCacheValidity.html
> 
>     The CacheableSource creates one of these in its 
> constructor,  and CacheableSourceFactory keeps a 
> java.util.Map associating urls with CacheValiditys that are 
> in the cache.  The two are compared to decide whether or not 
> to refresh the cache as well as what to return for 
> getLastModified().  At the moment the time value is hard 
> coded (I'm using 15 minutes).
>      I did consider using a Generator to do this, and to be 
> honest, I've forgotten why I abandoned that effort.

Basically I think a source would be a good idea because it's more
flexible than a generator. 
As already mentioned I don't know how to set the expiration time. 

If you use a source the only way to pass a parameter is the source
string itself (at least AFAIK). I'm not sure if something like

cache:3h//cocoon://resource/that/takes/a/long/time  or
cache:100m//cocoon://resource/that/takes/a/long/time

would be a good idea.

What do you think?

Regards,
Reinhard


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

Reply via email to