objectcache: tweak SqlBagOStuff purging to happen on write only
authorAaron Schulz <aschulz@wikimedia.org>
Sat, 6 Jul 2019 07:02:13 +0000 (00:02 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Sat, 6 Jul 2019 07:04:13 +0000 (00:04 -0700)
commitc860f99a6ea9a4fe6d6bcec693f2cacf74f883b9
tree52dacec6644e58a8811b1ec881f7cc1fa848e333
parenta0307e8fa07f11f886bd1c4bc08a51ba031afa70
objectcache: tweak SqlBagOStuff purging to happen on write only

Also adjust the frequency default and put in a 100 row limit for
randomized purges. This adds a $limit parameter to the BagOStuff
method deleteObjectsExpiringBefore().

Change-Id: I66bfcc67e8e118f8c659dbbee13d54bf2cd937f5
includes/libs/objectcache/BagOStuff.php
includes/libs/objectcache/CachedBagOStuff.php
includes/libs/objectcache/MultiWriteBagOStuff.php
includes/libs/objectcache/ReplicatedBagOStuff.php
includes/objectcache/SqlBagOStuff.php