Commit 71abf299 authored by Hanno Schlichting's avatar Hanno Schlichting

Be a bit more defensive about cache contents

parent bd2a25f2
...@@ -174,7 +174,9 @@ class AcceleratedHTTPCacheManager (CacheManager, SimpleItem): ...@@ -174,7 +174,9 @@ class AcceleratedHTTPCacheManager (CacheManager, SimpleItem):
security.declarePrivate('_remove_data') security.declarePrivate('_remove_data')
def _remove_data(self): def _remove_data(self):
caches.pop(self.__cacheid) cid = self.__cacheid
if cid in caches:
caches.pop(self.__cacheid)
security.declarePrivate('_resetCacheId') security.declarePrivate('_resetCacheId')
def _resetCacheId(self): def _resetCacheId(self):
......
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