summaryrefslogtreecommitdiff
path: root/docs/cache.txt
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2005-09-02 21:22:49 +0000
committerAdrian Holovaty <adrian@holovaty.com>2005-09-02 21:22:49 +0000
commit6d92319838dd4fc9c96b569312702840d326d800 (patch)
tree2516ad4f12d7cb40d3344d3564e091019956513b /docs/cache.txt
parentccbea84834a9f530c2019671787188599d2e148b (diff)
Added note to docs/cache.txt saying CacheMiddleware needs to be first entry in MIDDLEWARE_CLASSES
git-svn-id: http://code.djangoproject.com/svn/django/trunk@616 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/cache.txt')
-rw-r--r--docs/cache.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/cache.txt b/docs/cache.txt
index 12920b1225..d8d028b558 100644
--- a/docs/cache.txt
+++ b/docs/cache.txt
@@ -70,10 +70,13 @@ cache your entire site. Just add ``django.middleware.cache.CacheMiddleware``
to your ``MIDDLEWARE_CLASSES`` setting, as in this example::
MIDDLEWARE_CLASSES = (
- "django.middleware.common.CommonMiddleware",
"django.middleware.cache.CacheMiddleware",
+ "django.middleware.common.CommonMiddleware",
)
+Make sure it's the first entry in ``MIDDLEWARE_CLASSES``. (The order of
+``MIDDLEWARE_CLASSES`` matters.)
+
Then, add the following three required settings:
* ``CACHE_MIDDLEWARE_SECONDS`` -- The number of seconds each page should be