remove cache after recalculation

This commit is contained in:
fpeters 2004-09-20 08:06:19 +00:00
parent 305cb6581d
commit 96ace1f7dd
1 changed files with 4 additions and 0 deletions

View File

@ -104,6 +104,10 @@ class ElectionsProxy(ElectionsCommonMixin, ObjectsProxy):
'computeObject',
[commonTools.extractServerId(objectId), getApplicationToken(),
userToken, objectId])
cache = context.getVar('cache')
if cache and cache.has_key(objectId):
del cache[objectId]
def getBallotKind(self, objectId):
userToken = context.getVar('userToken', default = '')