From 19862374cf2664b9bdf354a003d1b6a476ee73ee Mon Sep 17 00:00:00 2001 From: Andreas Gabriel Date: Thu, 19 May 2016 15:28:57 +0200 Subject: [PATCH] Fix not operator support of cache key --- src/Products/PluginIndexes/common/UnIndex.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Products/PluginIndexes/common/UnIndex.py b/src/Products/PluginIndexes/common/UnIndex.py index 81576b8f..9671af25 100644 --- a/src/Products/PluginIndexes/common/UnIndex.py +++ b/src/Products/PluginIndexes/common/UnIndex.py @@ -359,7 +359,7 @@ def getRequestCacheKey(self, record, resultset=None): params.append(('operator', operator)) # not / exclude operator - not_value = getattr(self, 'not', None) + not_value = record.get('not', None) if not_value is not None: not_value = frozenset(not_value) params.append(('not', not_value)) @@ -380,7 +380,6 @@ def getRequestCacheKey(self, record, resultset=None): # unique index identifier iid = '_%s_%s_%s' % (self.__class__.__name__, self.id, self.getCounter()) - return (iid, rid) def _apply_index(self, request, resultset=None):