objectcache: avoid duplicate set() calls with lockTSE when no value is in cache
authorAaron Schulz <aschulz@wikimedia.org>
Sun, 3 Feb 2019 02:13:17 +0000 (18:13 -0800)
committerAaron Schulz <aschulz@wikimedia.org>
Sun, 3 Feb 2019 02:17:59 +0000 (02:17 +0000)
commit70bf85d46262f693d62c1f10acd6069265013334
tree14ecf0478501faf13e52a816a3d84ec2d442afaf
parent47838dfd6d6f62ba5cc8b5f0140f325418eada3a
objectcache: avoid duplicate set() calls with lockTSE when no value is in cache

Each thread will still run the callback, but only one will save the value back

Bug: T203786
Change-Id: Idc4738aa005cc44ec0f1adc6dcf2e3f87d0c9480
includes/libs/objectcache/WANObjectCache.php