Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 46069 invoked from network); 16 Sep 2005 03:29:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Sep 2005 03:29:29 -0000 Received: (qmail 40449 invoked by uid 500); 16 Sep 2005 03:29:27 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 40377 invoked by uid 500); 16 Sep 2005 03:29:26 -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 40363 invoked by uid 99); 16 Sep 2005 03:29:26 -0000 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Sep 2005 20:29:24 -0700 Received: by ajax.apache.org (Postfix, from userid 99) id 034C0149; Fri, 16 Sep 2005 05:29:23 +0200 (CEST) From: bugzilla@apache.org To: dev@cocoon.apache.org Subject: DO NOT REPLY [Bug 31600] - [PATCH] Caching support for XIncludes X-Bugzilla-Reason: AssignedTo Message-Id: <20050916032923.034C0149@ajax.apache.org> Date: Fri, 16 Sep 2005 05:29:23 +0200 (CEST) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG� RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND� INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=31600 apache.bugs@lojjic.net changed: What |Removed |Added ---------------------------------------------------------------------------- CC|apache.bugs@lojjic.net | ------- Additional Comments From apache.bugs@lojjic.net 2005-09-16 05:29 ------- (In reply to comment #4) > But wouldn't that cause a cache-key clash if you had 2 different includes that > called the same source but extracted different XPath subset? Ideally these 2 > results would both be cached separately. It's difficult to explain this because pipeline caching is a very complex beast. There's no key clash because the key returned by the individual included Source is ignored; instead, each included source's Validity is requested and those are aggregated into a MultiSourceValidity. So instead of a bunch of key->validity pairs for each included source, we have a single key->validity pair for the whole transformer. The key returned by XIncludeTransformer is always "XInclude", which at first seems wrong but it actually works because this key->validity pair is never stored individually. Instead, it is used to build yet another key->validity pair for the entire pipeline (or, more accurately, pipeline fragments so we can get partial pipeline caching). Therefore the final key is a combination of the keys for all the components before the transformer, and "XInclude". I think I went on a tangent there... the simple answer to your question is that all we're worried about is the SourceValidity objects from the included sources, as their keys are totally ignored in favor of the single key for the transformer's aggregated validity. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.