You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-dev@xml.apache.org by Ugo Cei <u....@cbim.it> on 2002/05/16 11:02:22 UTC

Re: XIndice and Caching

Alex McLintock wrote:

> The second thing I am looking at is trying to use Cocoon/Avalon caching 
> and I am not sure I understand it.
> 
> Do I cache the database results, or the xml/html which we get from them 
> after being processed by XSLT ?
> 
> My XML database changes very infrequently - can I tell the cache that it 
> has been updated and thus all cached things should be dropped?
> 
> Feel free to point me at the docs if I've missed them.
> 
> Alex

You should be able to cache the results of the Xindice query by 
extending org.apache.cocoon.components.source.XMLDBSource and overriding 
getLastModifiedTime() to return something different from zero.

It would be nice if Xindice provided the modification time of a 
collection, you could use it as a value to return from 
getLastModifiedTime(). Unfortunately it does not, so you'll have to 
resort to application-specific methods.

	Ugo

P.S.: I've taken the liberty to CC xindice-dev.


-- 
Ugo Cei - Consorzio di Bioingegneria e Informatica Medica
P.le Volontari del Sangue, 2 - 27100 Pavia - Italy
Phone: +39.0382.525100 - E-mail: u.cei@cbim.it