Cleanups to WANObjectCache::getWithSetCallback code
authorAaron Schulz <aschulz@wikimedia.org>
Fri, 15 May 2015 05:52:35 +0000 (22:52 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Fri, 15 May 2015 06:07:13 +0000 (06:07 +0000)
commit60608c12749a6c503bd340cd14f081f9250e9ec3
tree3b981818ef6bdd2d6fabb5de1411aed636b856a4
parent806c0cb85c8efa62a2000b936a84cfe0b5759ba3
Cleanups to WANObjectCache::getWithSetCallback code

* Do not use lock() for tombstoned keys unless lockTSE was set
* Moved the is_callable() check down a bit further
* Also removed one inaccurate comment

Change-Id: I904e0681faa48b1dc2bc2a3c005a29d2f8347065
includes/libs/objectcache/WANObjectCache.php