Commit 97136768 by Calen Pennington

Empty the RequestCache if the request ends in an exception

parent a88fa5c0
......@@ -51,3 +51,10 @@ class RequestCache(object):
def process_response(self, request, response):
self.clear_request_cache()
return response
def process_exception(self, request, exception): # pylint: disable=unused-argument
"""
Clear the RequestCache after a failed request.
"""
self.clear_request_cache()
return 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