From d021c7b53c9cd9c94927da313abe263f7baf4598 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Tue, 24 Apr 2007 20:15:20 +0000
Subject: [PATCH] Use activities to clear cache when validating an account. Use
 a low priorty as it may prevent unnecessary cache clears when validating /
 invalidating multiple accounts.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14202 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../portal_workflow/account_workflow/scripts/clearCache.xml     | 2 +-
 bt5/erp5_accounting/bt/revision                                 | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/account_workflow/scripts/clearCache.xml b/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/account_workflow/scripts/clearCache.xml
index 05ffc07425..92d2017a4e 100644
--- a/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/account_workflow/scripts/clearCache.xml
+++ b/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/account_workflow/scripts/clearCache.xml
@@ -73,7 +73,7 @@ list of accounts.\n
 """\n
 from Products.CMFCore.utils import getToolByName\n
 portal_caches = getToolByName(sci.getPortal(), \'portal_caches\')\n
-portal_caches.clearCache()\n
+portal_caches.activate(priority=3).clearCache()\n
 </string> </value>
         </item>
         <item>
diff --git a/bt5/erp5_accounting/bt/revision b/bt5/erp5_accounting/bt/revision
index 4e66132b50..2989c6c763 100644
--- a/bt5/erp5_accounting/bt/revision
+++ b/bt5/erp5_accounting/bt/revision
@@ -1 +1 @@
-282
\ No newline at end of file
+283
\ No newline at end of file
-- 
2.30.9