From 126eb58abef119b799f81bd3626cb777910847cf Mon Sep 17 00:00:00 2001 From: Frankie Robertson Date: Tue, 23 Dec 2014 15:38:34 +0200 Subject: [1.7.x] Fixed #24035 -- Clarified docs on CACHE_MIDDLEWARE_KEY_PREFIX vs KEY_PREFIX Backport of 446b50b90e9e60760618b236d8b0ea75a3b19d5a from master --- docs/ref/settings.txt | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'docs/ref') diff --git a/docs/ref/settings.txt b/docs/ref/settings.txt index 0f39d23c6d..87760b86e2 100644 --- a/docs/ref/settings.txt +++ b/docs/ref/settings.txt @@ -283,7 +283,8 @@ CACHE_MIDDLEWARE_ALIAS Default: ``default`` -The cache connection to use for the cache middleware. +The cache connection to use for the :ref:`cache middleware +`. .. setting:: CACHE_MIDDLEWARE_ANONYMOUS_ONLY @@ -312,7 +313,9 @@ CACHE_MIDDLEWARE_KEY_PREFIX Default: ``''`` (Empty string) -The cache key prefix that the cache middleware should use. +A string which will be prefixed to the cache keys generated by the :ref:`cache +middleware `. This prefix is combined with the +:setting:`KEY_PREFIX ` setting; it does not replace it. See :doc:`/topics/cache`. @@ -323,8 +326,8 @@ CACHE_MIDDLEWARE_SECONDS Default: ``600`` -The default number of seconds to cache a page when the caching middleware or -``cache_page()`` decorator is used. +The default number of seconds to cache a page for the :ref:`cache middleware +`. See :doc:`/topics/cache`. -- cgit v1.3