Make WAN cache HOLDOFF_TTL smaller by combining db/snapshot lag
authorAaron Schulz <aschulz@wikimedia.org>
Sun, 25 Oct 2015 20:42:21 +0000 (13:42 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Tue, 27 Oct 2015 18:38:54 +0000 (11:38 -0700)
commit05a3ee2468a683d2a88ed8a5e7a8ace02a73bc45
treeda2cf623513536bdead95251715bf991c4ba68c2
parent8f15bc8ec9e15bca8c19490ccaa45f805d54a035
Make WAN cache HOLDOFF_TTL smaller by combining db/snapshot lag

* In the common ~0 second lag case, transactions up to ~7 seconds
  long will have normal set() behavior (instead of just ~5 seconds).
* Like wise with ~0 second transactions tolerating ~7 seconds of
  lag (instead of just ~5).
* The lower hold-off time lets caching resume 3 seconds sooner.

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