objectcache: Always use interim values on WAN cache tombstones
authorAaron Schulz <aschulz@wikimedia.org>
Thu, 19 Oct 2017 04:03:26 +0000 (21:03 -0700)
committerKrinkle <krinklemail@gmail.com>
Tue, 24 Oct 2017 00:32:06 +0000 (00:32 +0000)
commit6b2f13b055c84d7672652f54deee096762c525cb
tree60f9b6cb72a18019b1fdbb3ece0df001d76a38eb
parent1380b0dbeaa37aab3d46e44a77fe16034296a93d
objectcache: Always use interim values on WAN cache tombstones

This stores values for very short times while the main
value is a tombstone in case of particularly high traffic.

Also make mutex keys expire immediately on unlock.

Change-Id: I4ec5cf7f8b49239fdd2518e5d955534877a0f7ee
includes/libs/objectcache/WANObjectCache.php
tests/phpunit/includes/libs/objectcache/WANObjectCacheTest.php