Skip to content

Commit

Permalink
Fixed #35141 -- Clarified the expected type of CACHE_MIDDLEWARE_SECON…
Browse files Browse the repository at this point in the history
…DS setting.
  • Loading branch information
e11bits authored and felixxm committed Jan 29, 2024
1 parent 22785f0 commit a536533
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/ref/settings.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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`.

Expand Down
5 changes: 3 additions & 2 deletions docs/topics/cache.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a536533

Please sign in to comment.