cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ugo Cei <u....@cbim.it>
Subject Re: XIndice and Caching
Date Thu, 16 May 2002 09:02:22 GMT
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


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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


Mime
View raw message