Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 99656 invoked from network); 30 Nov 2004 04:58:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 30 Nov 2004 04:58:25 -0000 Received: (qmail 7938 invoked by uid 500); 30 Nov 2004 04:58:18 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 7910 invoked by uid 500); 30 Nov 2004 04:58:17 -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 Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 7896 invoked by uid 99); 30 Nov 2004 04:58:17 -0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=RCVD_IN_NJABL_PROXY X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from glider.phpwebhosting.com (HELO glider.phpwebhosting.com) (66.132.162.177) by apache.org (qpsmtpd/0.28) with SMTP; Mon, 29 Nov 2004 20:58:16 -0800 Received: (qmail 17763 invoked from network); 30 Nov 2004 05:56:23 -0000 Received: from unknown (HELO ?192.168.8.17?) (61.171.145.1) by glider.phpwebhosting.com with SMTP; 30 Nov 2004 05:56:23 -0000 Message-ID: <41ABFD7F.9080905@soociety.com> Date: Tue, 30 Nov 2004 12:56:31 +0800 From: pguillard User-Agent: Mozilla Thunderbird 0.8 (X11/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: users cocoon Subject: Invalidate cachingURI coplet cache Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi all, Question1: I know it's possible to invalidate the cachingURI coplet cache "manually" from within flow, xsp or action but don't know how, here is where i am in flow: function reset_cache() { var cidmanager = Packages.org.apache.cocoon.portal.profile.impl.CopletInstanceDataManager(); var mycoplet = new Packages.org.apache.cocoon.portal.coplet.adapter.impl.CachingURICopletAdapter(); var cid = cidmanager.getCopletInstanceData("test-1") mycoplet.setCacheInvalid(cid); } Question2: Is this strategy correct ? - I plan to use this to invalidate cachingURI coplet cache after a form has been submitted, then the user going back to this portal-tab will see the coplet refreshed with the form again - Some users may update things that will change the content of other coplets (not concerning their profile and without having to login again), i assume i should also invalidate the cache for that coplets / that users in order to view these coplets updated. Regards, Phil --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org