cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donald Ball <>
Subject RE: xinclude caching (was: cache madness)
Date Fri, 01 Sep 2000 02:41:22 GMT
On Thu, 31 Aug 2000, Dafang Zhang wrote:

> Hi, everyone,
> I have to xinclude xml from remote site via URL and cache the xml for a
> certain amount of time.  Using the strategy Donald described in his posting,
> I can only cache the XSP page itself, but I also need to cache the xincluded
> stuff within the XSP page for a specified period.
> I noticed, in the archive, there's a proposal to add a timeout attribute to
> the include element, but it seems not implemented yet.   Is there a way to
> write my own java code to implement xinclude caching?  Do I need to modify
> the hasChanged method in
> Donald, would you explain what's the strategy for remote xml XInclude
> caching?

sure thing. the xinclude processor checks the freshness of the resources
it includes when reporting on the freshness of its results. if any of the
resources it includes claim to have changed (via getLastModified for URLs
or timestamp for files), i invalidate the cache.

- donald

View raw message