Added $opts to WANObjectCache::set() to detect snapshot lag
authorAaron Schulz <aschulz@wikimedia.org>
Thu, 24 Sep 2015 21:47:30 +0000 (14:47 -0700)
committerOri.livneh <ori@wikimedia.org>
Mon, 28 Sep 2015 23:03:36 +0000 (23:03 +0000)
commit75f06d529408e5dea33c97398f3aa17584b162d1
treead7f9bcf6905f00b773242368feba2ae89008688
parent4a883e2ec8dec91254b3232af298014121642d19
Added $opts to WANObjectCache::set() to detect snapshot lag

* This can avoid some stale write race conditions
* Made use of this option in a few key places
* HOLDOFF_TTL was also bumped

Change-Id: I83505a59cce0119e456191c3100f7d97bc86bdbf
includes/User.php
includes/filerepo/LocalRepo.php
includes/filerepo/file/LocalFile.php
includes/libs/objectcache/WANObjectCache.php