Lower CDN cache TTL when slave lag is high
authorAaron Schulz <aschulz@wikimedia.org>
Thu, 1 Oct 2015 07:24:18 +0000 (00:24 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Wed, 7 Oct 2015 01:49:49 +0000 (18:49 -0700)
commitc7b932af6bbcb380cf250d5e3d7cd480514ef747
tree5e034dce0ab049f8582b2a0c5c55a9e14b4f709d
parentda3443bfa2a925a7578f1378d7bfc1bb1acb4587
Lower CDN cache TTL when slave lag is high

* $wgCdnMaxageLagged controls exactly what that TTL is
  and the usual "max lag" settings determine what "high"
  is for lag (which already makes the site read-only).
* This helps avoids stale content getting stuck in CDN
  for a month just because a slave was lagged for a minute.
  Of course race conditions with normal slave lag and WAN
  cache relay purges can still lead to this problem, though
  the scope of it is reduced.

Bug: T113204
Change-Id: I7ff0a8d88665f4e557566e7b412e75edee2627fe
RELEASE-NOTES-1.27
includes/DefaultSettings.php
includes/MediaWiki.php
includes/OutputPage.php
includes/db/loadbalancer/LBFactory.php
includes/db/loadbalancer/LoadBalancer.php