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: [EMAIL PROTECTED]
---------------------------------------------------------------------
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>