Made getMaxLag() use caching to reduce connection spam
authorAaron Schulz <aschulz@wikimedia.org>
Thu, 10 Jul 2014 17:46:42 +0000 (10:46 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Thu, 10 Jul 2014 17:46:42 +0000 (10:46 -0700)
commitf9ddcb04539398dc7432aacd456e1ba9ed0b64a6
tree6cd5d4896832eceeec0c5efbf447d51d01a5584f
parent8872c1119ab98d2236111a0ad203289b47b48378
Made getMaxLag() use caching to reduce connection spam

* This method is currently hit when bots use the maxlag API parameter
* Also added a $fallback param to ObjectCache::newAccelerator so code
  does not have to keep reinventing that logic.

Change-Id: I45bf1085301c5cf69b29b494a146c6a067534581
includes/db/LoadBalancer.php
includes/objectcache/ObjectCache.php