Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 86661 invoked by uid 500); 21 Feb 2003 15:41:56 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 86607 invoked from network); 21 Feb 2003 15:41:55 -0000 Received: from out001pub.verizon.net (HELO out001.verizon.net) (206.46.170.140) by daedalus.apache.org with SMTP; 21 Feb 2003 15:41:55 -0000 Received: from verizon.net ([139.85.116.181]) by out001.verizon.net (InterMail vM.5.01.05.20 201-253-122-126-120-20021101) with ESMTP id <20030221154156.EUWK23484.out001.verizon.net@verizon.net> for ; Fri, 21 Feb 2003 09:41:56 -0600 Message-ID: <3E56489A.3010004@verizon.net> Date: Fri, 21 Feb 2003 10:41:14 -0500 From: Vadim Gritsenko User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2.1) Gecko/20021130 X-Accept-Language: en-us, en MIME-Version: 1.0 To: cocoon-dev@xml.apache.org Subject: Re: [PROBLEM] caching after map:aggregate References: <3E550680.6000002@kbsm.de> <3E5511AA.3040808@verizon.net> <3E55FAF0.9000109@kbsm.de> In-Reply-To: <3E55FAF0.9000109@kbsm.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Authentication-Info: Submitted using SMTP AUTH at out001.verizon.net from [139.85.116.181] at Fri, 21 Feb 2003 09:41:56 -0600 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Klaus Bertram wrote: > Vadim Gritsenko wrote: > >> Klaus Bertram wrote: >> >>> Hi all, >>> >>> it seems that there is a caching problem after the map:aggregate module >>> in the followed transformer >>> at version 2.0.4 and 2.0.5 it works well but not in 2.1 dev >>> >>> here a sample: >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> If index.html is called at the first time it works ok. >>> If it call's the next times with index.html?id=22 or index.html?id=aass >>> the first cached side after the aggregation are responded. >> >> >> >> From what I see, if you remove use-request-parameters parameter, all >> requests to the index.html must always return cached result, and >> request parameters should not affect this behavior. This means, for >> any request like "index.html", "index.html?id=111", >> "index.html?whatever=something", response always should be the same >> and from the cache. >> >> If Cocoon 2.0.4 does not return result from the cache, then it's a bug. > > I don't if this is a bug > Is the content aggregation not a special part for caching? No, it is not. Pipeline with aggregation is cached as a whole. Parts referenced by "cocoon" protocol could be cached separately, because they are separate pipelines. > This means when a aggreagation is processed the caching module should > look at the part caching key if it changed and generate a new cached > result? If pipeline validity for given pipeline key has been changed, then whole result will be recreated. > This can solved the problem ;) I don't see a problem, because (when you remove use-request-parameters parameter) your sitemap is static thus one and only one cached result should be created for index.html and served regardless of request parameters. If you want to vary response based on some request parameter, you need to include this request parameter into pipeline key and then results for every variation of input parameter will be cached independently. If you are using XSP, see cacheable.xsp to get an idea. Vadim