From bc8abe36ba5508fe788f6d49a26749268d368583 Mon Sep 17 00:00:00 2001 From: Michael Manfre Date: Thu, 6 Nov 2014 23:47:04 -0500 Subject: 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. --- docs/releases/1.8.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docs') diff --git a/docs/releases/1.8.txt b/docs/releases/1.8.txt index d3232d8235..fec2e2b4bc 100644 --- a/docs/releases/1.8.txt +++ b/docs/releases/1.8.txt @@ -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 -- cgit v1.3