Commit 1e0163a2 by Calen Pennington

Make RequestCache.clear_request_cache a classmethod

parent 5c6ccc8f
......@@ -18,7 +18,11 @@ class RequestCache(object):
"""
return _request_cache_threadlocal.request
def clear_request_cache(self):
@classmethod
def clear_request_cache(cls):
"""
Empty the request cache.
"""
_request_cache_threadlocal.data = {}
_request_cache_threadlocal.request = None
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment