Make interim WAN cache key deactivation logic broader
authorAaron Schulz <aschulz@wikimedia.org>
Thu, 1 Feb 2018 00:47:09 +0000 (16:47 -0800)
committerAaron Schulz <aschulz@wikimedia.org>
Thu, 1 Feb 2018 00:57:05 +0000 (00:57 +0000)
commitd5354b4a3a96f8e8d6c12eda9c7fa8a954f3ee7e
tree3eaebf1769a00aebaabce1b3d17cb81a52216a91
parentdc1e092e692480082126d0218b52843d31540537
Make interim WAN cache key deactivation logic broader

* This is how it was before d5aa846d8, which accidentally changed
  the behavior. The WAN cache call in Setup.php was too coupled to
  the ChronologyProtector cookies. It made the assumption that DB
  positions and cookies are stored even when there are no replica
  databases setup (which changed in that patch).
* Check the "UseDC" cookie instead, which is already set in exactly
  the cases this logic should apply.

Bug: T185328
Change-Id: I4dd2a6ca6cdead0052d59be86e6030dbe01f141b
includes/Setup.php