objectcache: simplify WANObjectCache version handling code
authorAaron Schulz <aschulz@wikimedia.org>
Tue, 9 Jul 2019 01:17:04 +0000 (18:17 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Tue, 9 Jul 2019 01:30:53 +0000 (18:30 -0700)
commitf43e8dc7132911414f502a388e1199b3adcf49e6
tree3cc9b2ec0b5fb3d3b3789cbd75a762a568761355
parent70355a243d09c098fcf33c7ced4c9a8fc5f4e1ab
objectcache: simplify WANObjectCache version handling code

Make getWithSetCallback() check for unversioned values instead
of doing it in multiple isValid() checks.

Also rename some variables in doGetWithSetCallback() for clarity.

Change-Id: I27fe0b2351643009d090964b9b57fa82ba658235
includes/libs/objectcache/WANObjectCache.php