[Zope-Checkins] SVN: Zope/trunk/src/Products/StandardCacheManagers/RAMCacheManager.py One more cache.pop
Hanno Schlichting
hannosch at hannosch.eu
Sat Jun 19 15:04:47 EDT 2010
Log message for revision 113700:
One more cache.pop
Changed:
U Zope/trunk/src/Products/StandardCacheManagers/RAMCacheManager.py
-=-
Modified: Zope/trunk/src/Products/StandardCacheManagers/RAMCacheManager.py
===================================================================
--- Zope/trunk/src/Products/StandardCacheManagers/RAMCacheManager.py 2010-06-19 18:32:23 UTC (rev 113699)
+++ Zope/trunk/src/Products/StandardCacheManagers/RAMCacheManager.py 2010-06-19 19:04:46 UTC (rev 113700)
@@ -382,7 +382,9 @@
security.declarePrivate('_remove_data')
def _remove_data(self):
- caches.pop(self.__cacheid)
+ cid = self.__cacheid
+ if cid in caches:
+ caches.pop(cid)
security.declarePrivate('_resetCacheId')
def _resetCacheId(self):
More information about the Zope-Checkins
mailing list