Fixed #35141 -- Clarified the expected type of CACHE_MIDDLEWARE_SECONDS setting.

This commit is contained in:
Alexander Lazarević 2024-01-26 03:59:54 +01:00 committed by Mariusz Felisiak
parent 22785f0d6b
commit a5365339ea
2 changed files with 5 additions and 4 deletions

View File

@ -273,8 +273,8 @@ See :doc:`/topics/cache`.
Default: ``600`` Default: ``600``
The default number of seconds to cache a page for the :ref:`cache middleware The default integer number of seconds to cache a page for the
<the-per-site-cache>`. :ref:`cache middleware <the-per-site-cache>`.
See :doc:`/topics/cache`. See :doc:`/topics/cache`.

View File

@ -608,8 +608,9 @@ entire site. You'll need to add
Then, add the following required settings to your Django settings file: 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_ALIAS` -- The cache alias to use for storage.
* :setting:`CACHE_MIDDLEWARE_SECONDS` -- The number of seconds each page should * :setting:`CACHE_MIDDLEWARE_SECONDS` -- The integer number of seconds each
be cached. page should be cached.
* :setting:`CACHE_MIDDLEWARE_KEY_PREFIX` -- If the cache is shared across * :setting:`CACHE_MIDDLEWARE_KEY_PREFIX` -- If the cache is shared across
multiple sites using the same Django installation, set this to the name of 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 the site, or some other string that is unique to this Django instance, to