Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added CACHE_MIDDLEWARE_SECONDS to global settings and documentation (…

…it's

used by the cache middleware). Refs #1015.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@5618 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 79e914e4967adc3030be7044f502e37bbb4ba88e 1 parent d0b627a
Malcolm Tredinnick malcolmt authored
Showing with 10 additions and 0 deletions.
  1. +1 −0  django/conf/global_settings.py
  2. +9 −0 docs/settings.txt
1  django/conf/global_settings.py
View
@@ -283,6 +283,7 @@
# possible values.
CACHE_BACKEND = 'simple://'
CACHE_MIDDLEWARE_KEY_PREFIX = ''
+CACHE_MIDDLEWARE_SECONDS = 600
####################
# COMMENTS #
9 docs/settings.txt
View
@@ -233,12 +233,21 @@ Default: ``'simple://'``
The cache backend to use. See the `cache docs`_.
CACHE_MIDDLEWARE_KEY_PREFIX
+---------------------------
Default: ``''`` (Empty string)
The cache key prefix that the cache middleware should use. See the
`cache docs`_.
+CACHE_MIDDLEWARE_SECONDS
+------------------------
+
+Default: ``600``
+
+The default number of seconds to cache a page when the caching middleware or
+``cache_page()`` decorator is used.
+
DATABASE_ENGINE
---------------
Please sign in to comment.
Something went wrong with that request. Please try again.