Changeset 1705
- Timestamp:
- 08/22/07 00:54:09
- Files:
-
- branches/cherrypy-3.0.x/cherrypy/lib/caching.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/cherrypy-3.0.x/cherrypy/lib/caching.py
r1703 r1705 5 5 import cherrypy 6 6 from cherrypy.lib import cptools, http 7 8 9 _missing = object() 7 10 8 11 … … 29 32 def _key(self): 30 33 request = cherrypy.request 31 return request.config.get("tools.caching.key", cherrypy.url(qs=request.query_string)) 34 key = request.config.get("tools.caching.key", _missing) 35 if key is _missing: 36 key = cherrypy.url(qs=request.query_string) 37 return key 32 38 key = property(_key) 33 39 … … 85 91 86 92 def delete(self): 87 self.cache.pop(self.key )93 self.cache.pop(self.key, None) 88 94 89 95

