[Zope-Checkins] SVN: Zope/trunk/src/Products/StandardCacheManagers/AcceleratedHTTPCacheManager.py Be a bit more defensive about cache contents
Hanno Schlichting
hannosch at hannosch.eu
Sat Jun 19 14:32:24 EDT 2010
Log message for revision 113699:
Be a bit more defensive about cache contents
Changed:
U Zope/trunk/src/Products/StandardCacheManagers/AcceleratedHTTPCacheManager.py
-=-
Modified: Zope/trunk/src/Products/StandardCacheManagers/AcceleratedHTTPCacheManager.py
===================================================================
--- Zope/trunk/src/Products/StandardCacheManagers/AcceleratedHTTPCacheManager.py 2010-06-19 18:12:51 UTC (rev 113698)
+++ Zope/trunk/src/Products/StandardCacheManagers/AcceleratedHTTPCacheManager.py 2010-06-19 18:32:23 UTC (rev 113699)
@@ -174,7 +174,9 @@
security.declarePrivate('_remove_data')
def _remove_data(self):
- caches.pop(self.__cacheid)
+ cid = self.__cacheid
+ if cid in caches:
+ caches.pop(self.__cacheid)
security.declarePrivate('_resetCacheId')
def _resetCacheId(self):
More information about the Zope-Checkins
mailing list