diff --git a/django/conf/global_settings.py b/django/conf/global_settings.py index 75ba271c1e..2a7df569fb 100644 --- a/django/conf/global_settings.py +++ b/django/conf/global_settings.py @@ -283,6 +283,7 @@ SESSION_EXPIRE_AT_BROWSER_CLOSE = False # Whether sessions expire when a user # possible values. CACHE_BACKEND = 'simple://' CACHE_MIDDLEWARE_KEY_PREFIX = '' +CACHE_MIDDLEWARE_SECONDS = 600 #################### # COMMENTS # diff --git a/docs/settings.txt b/docs/settings.txt index 9c9602d9ec..050e377713 100644 --- a/docs/settings.txt +++ b/docs/settings.txt @@ -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 ---------------