Commit dd6cf386 authored by Jérome Perrin's avatar Jérome Perrin

Clear SkinsTool cache, because there's only one cache per REQUEST, and with
timer service, we have the same request for potentially multiple portals. 



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9623 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2f51b87b
......@@ -501,6 +501,14 @@ class ActivityTool (Folder, UniqueObject):
self.distribute(1)
#LOG('CMFActivity:', INFO, 'distributingNodes empty! Calling distribute(1)')
# SkinsTool uses a REQUEST cache to store skin objects, as
# with TimerService we have the same REQUEST over multiple
# portals, we clear this cache to make sure the cache doesn't
# contains skins from another portal.
stool = getToolByName(self, 'portal_skins', None)
if stool is not None:
stool.changeSkin(None)
# call tic for the current processing_node
# the processing_node numbers are the indices of the elements in the node tuple +1
# because processing_node starts form 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment