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