objectcache: pass in the $oldValue as-of time in getWithSetCallback()
authorAaron Schulz <aschulz@wikimedia.org>
Thu, 8 Sep 2016 18:34:39 +0000 (11:34 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Thu, 8 Sep 2016 18:36:25 +0000 (18:36 +0000)
commit8db4c163e80efcf86f769fdceebcf459ae3ab85c
treeb8421c420d912b8e457d2d13a553b5b9adf273c2
parent82a95e69ab2e576a5687138f29d0abbd21ad8c0e
objectcache: pass in the $oldValue as-of time in getWithSetCallback()

This lets callers use adaptive TTLs on the near-expiration
preemptive refreshes if the new and current values match,
using the as-of time as $mtime.

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