Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Changeset 1189

Show
Ignore:
Timestamp:
07/09/06 19:02:22
Author:
fumanchu
Message:

Fixed memory-leak bug when expiring cache objects.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/cherrypy/lib/caching.py

    r1187 r1189  
    3737        while time: 
    3838            now = time.time() 
    39             for expirationTime, objects in self.expirations
     39            for expirationTime, objects in self.expirations.items()
    4040                if expirationTime <= now: 
    4141                    for objSize, objKey in objects: 
     
    4747                            # the key may have been deleted elsewhere 
    4848                            pass 
     49                    del self.expirations[expirationTime] 
    4950            time.sleep(0.1) 
    5051     

Hosted by WebFaction

Log in as guest/cpguest to create tickets