Skip to content

Commit

Permalink
Added note to docs/cache.txt saying CacheMiddleware needs to be first…
Browse files Browse the repository at this point in the history
… entry in MIDDLEWARE_CLASSES

git-svn-id: http://code.djangoproject.com/svn/django/trunk@616 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
adrianholovaty committed Sep 2, 2005
1 parent ccbea84 commit 6d92319
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/cache.txt
Expand Up @@ -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
Expand Down

0 comments on commit 6d92319

Please sign in to comment.