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

Changeset 1524

Show
Ignore:
Timestamp:
12/11/06 16:47:27
Author:
fumanchu
Message:

2.x backport of [1443] (use response.time for cache expiration).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/cherrypy-2.x/cherrypy/filters/cachefilter.py

    r1506 r1524  
    8787            # add to the expirationQueue & cache 
    8888            try: 
    89                 expirationTime = time.time() + cherrypy.config.get("cache_filter.delay", 600) 
     89                expirationTime = cherrypy.response.time + cherrypy.config.get("cache_filter.delay", 600) 
    9090                objKey = self.key 
    9191                self.expirationQueue.put((expirationTime, objSize, objKey)) 

Hosted by WebFaction

Log in as guest/cpguest to create tickets