summaryrefslogtreecommitdiff
path: root/cherrypy/lib/caching.py
diff options
context:
space:
mode:
authorRobert Brewer <fumanchu@aminus.org>2006-06-27 17:11:19 +0000
committerRobert Brewer <fumanchu@aminus.org>2006-06-27 17:11:19 +0000
commita05e92bff09c989a0c52f4554d90d7541f32e186 (patch)
tree14a5ca3d10bd26da74ca3d52b2acd5a717394133 /cherrypy/lib/caching.py
parent2ef575bc240b40f7cc37d1b56716ee70bcb9c8dc (diff)
downloadcherrypy-git-a05e92bff09c989a0c52f4554d90d7541f32e186.tar.gz
Renamed lib.encodings to lib.encoding to avoid shadowing the builtin.
Diffstat (limited to 'cherrypy/lib/caching.py')
-rw-r--r--cherrypy/lib/caching.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/cherrypy/lib/caching.py b/cherrypy/lib/caching.py
index c1187634..3f70b62f 100644
--- a/cherrypy/lib/caching.py
+++ b/cherrypy/lib/caching.py
@@ -103,8 +103,9 @@ def init(cache_class=None):
def get():
# Ignore POST, PUT, DELETE.
# See http://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html#sec13.10.
- if cherrypy.request.method in cherrypy.config.get("tools.caching.invalid_methods",
- ("POST", "PUT", "DELETE")):
+ invalid = cherrypy.config.get("tools.caching.invalid_methods",
+ ("POST", "PUT", "DELETE"))
+ if cherrypy.request.method in invalid:
cherrypy.request.cached = c = False
else:
cacheData = cherrypy._cache.get()