diff options
Diffstat (limited to 'cherrypy/lib/caching.py')
-rw-r--r-- | cherrypy/lib/caching.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cherrypy/lib/caching.py b/cherrypy/lib/caching.py index e97decb6..cebf5399 100644 --- a/cherrypy/lib/caching.py +++ b/cherrypy/lib/caching.py @@ -137,6 +137,8 @@ class MemoryCache: # See tickets #99 and #180 for more information. while time: now = time.time() + # Must make a copy of expirations so it doesn't change size + # during iteration for expiration_time, objects in self.expirations.items(): if expiration_time <= now: for obj_size, obj_key in objects: |