summaryrefslogtreecommitdiff
path: root/django/middleware/cache.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/middleware/cache.py')
-rw-r--r--django/middleware/cache.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/django/middleware/cache.py b/django/middleware/cache.py
index 96c6b24034..361e46f5e5 100644
--- a/django/middleware/cache.py
+++ b/django/middleware/cache.py
@@ -134,13 +134,13 @@ class FetchFromCacheMiddleware(object):
"""
if not request.method in ('GET', 'HEAD'):
request._cache_update_cache = False
- return None # Don't bother checking the cache.
+ return None # Don't bother checking the cache.
# try and get the cached GET response
cache_key = get_cache_key(request, self.key_prefix, 'GET', cache=self.cache)
if cache_key is None:
request._cache_update_cache = True
- return None # No cache information available, need to rebuild.
+ return None # No cache information available, need to rebuild.
response = self.cache.get(cache_key, None)
# if it wasn't found and we are looking for a HEAD, try looking just for that
if response is None and request.method == 'HEAD':
@@ -149,7 +149,7 @@ class FetchFromCacheMiddleware(object):
if response is None:
request._cache_update_cache = True
- return None # No cache information available, need to rebuild.
+ return None # No cache information available, need to rebuild.
# hit, return cached response
request._cache_update_cache = False