objectcache: simplify WAN cache unwrap() method by removing FLG_STALE
authorAaron Schulz <aschulz@wikimedia.org>
Tue, 26 Feb 2019 22:09:52 +0000 (14:09 -0800)
committerAaron Schulz <aschulz@wikimedia.org>
Wed, 27 Feb 2019 18:57:45 +0000 (18:57 +0000)
commitf50ea029941bf84c6b4ab8bbe762f2504630d782
tree226b02e29d72057944221239569ae52363f9899d
parenta2b85209e225b7420de03d9c33f7344641899503
objectcache: simplify WAN cache unwrap() method by removing FLG_STALE

Instead, make the "high read lag with lockTSE" case just lower FLD_TTL.
This also avoids constant regenerations by threads getting the mutex.

Added logging for TTL adjustments in set() for the lockTSE case.

Also remove some delete() calls from tests that were not needed.

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