More multi-DC tweaks to MessageCache::load()
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 12 Aug 2015 02:53:03 +0000 (19:53 -0700)
committerOri.livneh <ori@wikimedia.org>
Fri, 14 Aug 2015 15:49:53 +0000 (15:49 +0000)
commitdb464b8a847add8a342868ce5caaaef1a171f7be
tree33e4c37160e7d3e86abba8882390579a8e99bd1b
parent95ebbff50f60fde328054660682dcb962be698f2
More multi-DC tweaks to MessageCache::load()

* Use hash key volatility to propagate invalidations over DCs
  in addition to memcached->APC instances.
* Make use of stale APC cache due to hash mismatch instead
  of waiting around in some cases. This is similar to the
  TTL expiry and volatility cases.
* Renamed $hashExpired and added some comments for clarity.

Change-Id: I8890fb174cae72c4ce8872df64f52f5cbd55183b
includes/cache/MessageCache.php