Commits

Robert Brewer committed 9eb3385

3.0 fix for #662 (caching.get doesn't accept kwargs).

Comments (0)

Files changed (1)

cherrypy/lib/caching.py

         self.cache.pop(self.key)
 
 
-def get(invalid_methods=("POST", "PUT", "DELETE"), cache_class=MemoryCache):
+def get(invalid_methods=("POST", "PUT", "DELETE"), cache_class=MemoryCache, **kwargs):
     """Try to obtain cached output. If fresh enough, raise HTTPError(304).
     
     If POST, PUT, or DELETE: