mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #16358 - Made memcache backend delete old value on a failure to set.
Default Memcached configuration allows for a maximum object of 1MB and will fail to set the key if it is too large. The key will be deleted from memcached if it fails to be set. This is needed to avoid an issue with cache_db session backend using the old value stored in memcached, instead of the newer value stored in the database.
This commit is contained in:
@@ -729,6 +729,10 @@ Miscellaneous
|
||||
|
||||
.. _universal newlines: http://www.python.org/dev/peps/pep-0278
|
||||
|
||||
* The Memcached cache backends ``MemcachedCache`` and ``PyLibMCCache`` will
|
||||
delete a key if ``set()`` fails. This is necessary to ensure the ``cache_db``
|
||||
session store always fetches the most current session data.
|
||||
|
||||
.. _deprecated-features-1.8:
|
||||
|
||||
Features deprecated in 1.8
|
||||
|
||||
Reference in New Issue
Block a user