Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 93861 invoked from network); 18 Sep 2006 07:39:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Sep 2006 07:39:08 -0000 Received: (qmail 89801 invoked by uid 500); 18 Sep 2006 07:39:06 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 89597 invoked by uid 500); 18 Sep 2006 07:39:05 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 89585 invoked by uid 99); 18 Sep 2006 07:39:05 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Sep 2006 00:39:05 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [213.133.33.40] (HELO smtp.is.nl) (213.133.33.40) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Sep 2006 00:38:15 -0700 Received: from [213.133.51.241] (HELO hai01.hippo.local) by smtp.is.nl (CommuniGate Pro SMTP 5.0.10) with ESMTP id 628031 for dev@cocoon.apache.org; Mon, 18 Sep 2006 09:37:37 +0200 Received: from [10.10.100.209] ([10.10.100.209]) by hai01.hippo.local with Microsoft SMTPSVC(5.0.2195.6713); Mon, 18 Sep 2006 09:34:26 +0200 Message-ID: <450E4BE7.40103@hippo.nl> Date: Mon, 18 Sep 2006 09:33:59 +0200 From: Niels van Kampenhout Organization: Hippo User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: Caching jx *without* flow References: <1158349311.17986.4.camel@localhost> <450D361D.1070407@mobilebox.pl> In-Reply-To: <450D361D.1070407@mobilebox.pl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 18 Sep 2006 07:34:26.0962 (UTC) FILETIME=[DEB07720:01C6DAF4] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Leszek Gawron wrote: > Thorsten Scherler wrote: >> Hi all, hi Ard, >> >> http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=115194685214066&w=2 >> "... >>>> Now, the cached jx would depend on these three parameters. >>> Very easy to use, and less error prone than the flow part. >>>> If somebody is interested in the code I will hear " >> >> Yes very interested. >> http://svn.apache.org/viewvc?view=rev&rev=446701 >> https://issues.apache.org/jira/browse/FOR-931 >> >> Can you attach a patch to this issue or commit it to cocoon directly? >> >> Would be awesome. > Do I get it right: > > you want to patch JXTG to automatically build up a cache key from cocoon > parameters? > > > > > > > > > > so cocoon:/foo gets cached with something like "foo=bar&bar=foo"? > > Why need a patch for that? After all you already have jx:cache-key and > jx:cache-validity. > Since Ard is on holiday until the GetTogether, I'll try to answer this question. The reason is, as Ard said, to make it less error prone. People easily make mistakes if they have to build a cachekey string themselves, en they also easily forget to actually put the jx:cache-key and jx:cache-validity attributes in the JX template. I am talking from experience! It also makes the code more readable/transparent/explicit, because you don't need the extra flow step anymore in many cases. Regards, Niels