summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAlexander Lazarević <laza@e11bits.com>2024-01-26 03:59:54 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2024-01-29 19:18:43 +0100
commita5365339eaee043895a79dbbdd7462f1399136e5 (patch)
tree47dc80907c19a2b6f94ae69140a91098d4a1bf9c /docs
parent22785f0d6b9d1ef601737b1f0076972e7c82e8d0 (diff)
Fixed #35141 -- Clarified the expected type of CACHE_MIDDLEWARE_SECONDS setting.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/settings.txt4
-rw-r--r--docs/topics/cache.txt5
2 files changed, 5 insertions, 4 deletions
diff --git a/docs/ref/settings.txt b/docs/ref/settings.txt
index 9db029cc60..98434c8833 100644
--- a/docs/ref/settings.txt
+++ b/docs/ref/settings.txt
@@ -273,8 +273,8 @@ See :doc:`/topics/cache`.
Default: ``600``
-The default number of seconds to cache a page for the :ref:`cache middleware
-<the-per-site-cache>`.
+The default integer number of seconds to cache a page for the
+:ref:`cache middleware <the-per-site-cache>`.
See :doc:`/topics/cache`.
diff --git a/docs/topics/cache.txt b/docs/topics/cache.txt
index 6625b6946c..3d67f9b03a 100644
--- a/docs/topics/cache.txt
+++ b/docs/topics/cache.txt
@@ -608,8 +608,9 @@ entire site. You'll need to add
Then, add the following required settings to your Django settings file:
* :setting:`CACHE_MIDDLEWARE_ALIAS` -- The cache alias to use for storage.
-* :setting:`CACHE_MIDDLEWARE_SECONDS` -- The number of seconds each page should
- be cached.
+* :setting:`CACHE_MIDDLEWARE_SECONDS` -- The integer number of seconds each
+ page should be cached.
+
* :setting:`CACHE_MIDDLEWARE_KEY_PREFIX` -- If the cache is shared across
multiple sites using the same Django installation, set this to the name of
the site, or some other string that is unique to this Django instance, to