summaryrefslogtreecommitdiff
path: root/docs/faq.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/faq.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/faq.txt')
-rw-r--r--docs/faq.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/faq.txt b/docs/faq.txt
index b374abfbf3..ccf8906c41 100644
--- a/docs/faq.txt
+++ b/docs/faq.txt
@@ -535,6 +535,14 @@ If you're sure your username and password are correct, make sure your user
account has ``is_active`` and ``is_staff`` set to True. The admin site only
allows access to users with those two fields both set to True.
+How can I prevent the cache middleware from caching the admin site?
+-------------------------------------------------------------------
+
+Set the ``CACHE_MIDDLEWARE_ANONYMOUS_ONLY`` setting to ``True``. See the
+`cache documentation`_ for more information.
+
+.. _cache documentation: ../cache/#the-per-site-cache
+
How do I automatically set a field's value to the user who last edited the object in the admin?
-----------------------------------------------------------------------------------------------