Made WANObjectCache::getCheckKey() automatically init the key
authorAaron Schulz <aschulz@wikimedia.org>
Fri, 22 May 2015 05:46:25 +0000 (22:46 -0700)
committerOri.livneh <ori@wikimedia.org>
Thu, 2 Jul 2015 07:13:22 +0000 (07:13 +0000)
commit84758e6f107f939f313563964b2b31f4a71efad0
treebe888cd004477f560216e9e6b813390d306950ab
parent9668611c4a83a55b62ce26a3d89b861af491ffd5
Made WANObjectCache::getCheckKey() automatically init the key

* This still allows If-Modified-Since logic but does not
  need to broadcast initialization values just because a
  key fell out of cache. The value can differ between DCs
  anyway via skew, this just lets them drift more. Actual
  purge events are still broadcasted, which is what matters.
* The User class has now been simplified given this change.
* Added more general comments to getCheckKeyTime().

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