cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donald Ball <ba...@webslingerZ.com>
Subject RE: cache and performance
Date Wed, 05 Jul 2000 19:59:25 GMT
On Wed, 5 Jul 2000, Ed Staub wrote:

> In cases where the consumer of the resource is also a cached resource, the
> effect COULD be recursive; the consumer would potentially make more
> effective use of caching also.  In order for this to be effective, the
> processor of the consuming document would require a way to quickly traverse
> the set of consumed resources, without processing the entire document. There
> may be some significant design issues here.
> 
> For example, an XInclude element might include a new attribute:
> 	<xinclude:include href="something.xml" cache-expire="P10M"/>
> to say that the cache for this inclusion need only be checked every ten
> minutes. (The "P10M" is in ISO 8601 syntax.) 

you can write your own cache class for cocoon that implements any kind of
caching strategy you desire. i had written a TimeoutCache a long while
back (cocoon-1.1??) but haven't bothered to update it to conform to the
new APIs. configuring the timeout cache on a per-resource basis as you've
described is, unfortunately, not possible.

- donald


Mime
View raw message