Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 89300 invoked from network); 16 Mar 2006 16:15:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Mar 2006 16:15:17 -0000 Received: (qmail 59953 invoked by uid 500); 16 Mar 2006 16:15:02 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 59864 invoked by uid 500); 16 Mar 2006 16:15:01 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 59816 invoked by uid 99); 16 Mar 2006 16:15:01 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Mar 2006 08:15:01 -0800 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=RCVD_IN_BL_SPAMCOP_NET,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of max.pfingsthorn@gmail.com designates 64.233.166.182 as permitted sender) Received: from [64.233.166.182] (HELO pproxy.gmail.com) (64.233.166.182) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Mar 2006 08:14:58 -0800 Received: by pproxy.gmail.com with SMTP id x66so1018326pye for ; Thu, 16 Mar 2006 08:14:37 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Rm/Zx798JVR/6kqNhfGaFeLke3zjDgu5Ozo7ALjoNu0+uDoh1OXWqAVPkIN4UMCBn9iL/up7Q4/GsmamV7LlplALpaV7uy34dcmvqvK0WTK2j+/yAJI3CLgQN3tMom/5e5JFFXcHG3l5BZmJMhNYS7svLMWFbYFx5GE1AEk4iPg= Received: by 10.65.191.5 with SMTP id t5mr1192452qbp; Thu, 16 Mar 2006 08:14:37 -0800 (PST) Received: by 10.65.181.8 with HTTP; Thu, 16 Mar 2006 08:14:37 -0800 (PST) Message-ID: <25335d770603160814o76514b7chba37d222622dea3b@mail.gmail.com> Date: Thu, 16 Mar 2006 17:14:37 +0100 From: "Max Pfingsthorn" To: users@cocoon.apache.org Subject: Re: is it possible to cache sql queries? In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi! I've just committed it. Please test it a little. I did a little stress test with a pipeline that did an aggregate of around 100 parts directly from the filesystem and serialized it to xml. The cached response took 0-16 ms, while generating it took over 500 ms. Be aware that the default cache key for all pipelines is the exact uri you used to generate it. This has always been so with the ExpiresCachingProcessingPipeline. If you need to write your own (maybe your pipeline also depends on session attributes or request parameters), use it like this: ... Then the cache key will be of the same form for _all_ matchers within this block. If you need another form (i.e. add/remove parameters), you need to declare a nother pipeline element and give it a new "cache-key" parameter. By the way, "{0}" gives you the complete uri the matcher matched. Have fun! max On 3/16/06, Ard Schrijvers wrote: > > > Derek Hohls wrote: > > > Any chance this will be in the forthcoming 2.1.9 release? > > > > I'm sat next to Ard right now so with a bit of luck, yes ;-) > > > > Max is committing it. Should be available in 2.1.9 > > AS > > -- > > Hippo > Oosteinde 11 > 1017WT Amsterdam > The Netherlands > Tel +31 (0)20 5224466 > ------------------------------------------------------------- > a.schrijvers@hippo.nl / http://www.hippo.nl > -------------------------------------------------------------- > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org > For additional commands, e-mail: users-help@cocoon.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org