Commit 56178d52 authored by Hanno Schlichting's avatar Hanno Schlichting

Use the API, thx sidnei!

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