summaryrefslogtreecommitdiff
path: root/docs/cache.txt
diff options
context:
space:
mode:
authorJacob Kaplan-Moss <jacob@jacobian.org>2006-07-20 15:37:12 +0000
committerJacob Kaplan-Moss <jacob@jacobian.org>2006-07-20 15:37:12 +0000
commit2a8a32c44902ab13d68c36e010331d9b6c969fbf (patch)
tree03ca9beeb79813727c716c05b5ea63abdebc237f /docs/cache.txt
parent9b6d1efe774b6aaf1974fdedc84b8e0c6925bb4c (diff)
Added a CACHE_MIDDLEWARE_ANONYMOUS_ONLY setting which makes the cache ignore pages served to authenticated users. Fixes #1509 (thanks, Matt).
Also added a FAQ entry about using this setting to avoid caching of the admin interface. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3395 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/cache.txt')
-rw-r--r--docs/cache.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/docs/cache.txt b/docs/cache.txt
index 2ef3d6503f..5efa2649ae 100644
--- a/docs/cache.txt
+++ b/docs/cache.txt
@@ -230,7 +230,12 @@ Then, add the following required settings to your Django settings file:
collisions. Use an empty string if you don't care.
The cache middleware caches every page that doesn't have GET or POST
-parameters. Additionally, ``CacheMiddleware`` automatically sets a few headers
+parameters. Optionally, If the ``CACHE_MIDDLEWARE_ANONYMOUS_ONLY`` setting is
+``True``, only anonymous requests (i.e. those node made by a logged in user)
+will be cached. This is a simple and effective way of disabling caching on any
+user-specific content ( include Django's admin interface).
+
+Additionally, ``CacheMiddleware`` automatically sets a few headers
in each ``HttpResponse``:
* Sets the ``Last-Modified`` header to the current date/time when a fresh