Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 79848 invoked by uid 500); 16 May 2002 09:03:03 -0000 Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-users@xml.apache.org Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 79828 invoked from network); 16 May 2002 09:03:03 -0000 Message-ID: <3CE3759E.5010205@cbim.it> Date: Thu, 16 May 2002 11:02:22 +0200 From: Ugo Cei Organization: C.B.I.M. User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0rc2) Gecko/20020510 X-Accept-Language: en-us, en MIME-Version: 1.0 To: cocoon-users@xml.apache.org CC: xindice-dev@xml.apache.org Subject: Re: XIndice and Caching References: <5.1.0.14.0.20020515144107.01c224c0@pop3.mail.demon.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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. To unsubscribe, e-mail: For additional commands, e-mail: