Fixed sanity cache clear in User::saveSettings()
authorAaron Schulz <aschulz@wikimedia.org>
Mon, 28 Sep 2015 21:07:01 +0000 (14:07 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Mon, 28 Sep 2015 21:07:01 +0000 (14:07 -0700)
commitb23e0b0a835fa84031442b8b3b313860a6affadf
tree9837c7b666be6c289f8b31d04c9fd0d1e691241e
parent84ce1abcc9a58f6d39d979e522f95fe7dff85624
Fixed sanity cache clear in User::saveSettings()

* This works by adding a refresh mode to clearSharedCache()
  when we want to purge the cache in case it might stale to
  avoid further CAS errors. Because an exception will be
  thrown, the usual DB callback will not get fired, so avoid
  using commit hooks when doing these cache purges.
* Also lowered the tombstone TTL for such purges, since no
  data actually changed.

Bug: T114023
Change-Id: Iaad87b4ed24733dac40bc9607d3c97c940710087
includes/User.php