mirror of
https://github.com/django/django.git
synced 2025-10-24 22:26:08 +00:00
Fixed #22085 -- Added a feature for setting non-expiring keys as the default.
This feature allows the default `TIMEOUT` Cache argument to be set to `None`, so that cache instances can set a non-expiring key as the default, instead of using the default value of 5 minutes. Previously, this was possible only by passing `None` as an argument to the set() method of objects of type `BaseCache` (and subtypes).
This commit is contained in:
@@ -255,6 +255,10 @@ Default: 300
|
||||
|
||||
The number of seconds before a cache entry is considered stale.
|
||||
|
||||
.. versionadded:: 1.7
|
||||
|
||||
If the value of this settings is ``None``, cache entries will not expire.
|
||||
|
||||
.. setting:: CACHES-VERSION
|
||||
|
||||
VERSION
|
||||
|
||||
Reference in New Issue
Block a user