From: Aaron Schulz Date: Fri, 1 Dec 2017 06:07:09 +0000 (-0800) Subject: objectcache: fix a few documentation mistakes X-Git-Tag: 1.31.0-rc.0~1327^2 X-Git-Url: http://git.cyclocoop.org/%27%40script%40/ecrire/?a=commitdiff_plain;h=976cb7035bf488ffb1bc767857b06bc1041e991d;p=lhc%2Fweb%2Fwiklou.git objectcache: fix a few documentation mistakes * Fix useInterimHoldOffCaching() description * Mention when staleTTL and graceTTL where added Change-Id: Iea24b77f6816251e9dac814dc57f6a44382a3cea --- diff --git a/includes/libs/objectcache/WANObjectCache.php b/includes/libs/objectcache/WANObjectCache.php index 74ec7b941f..3decef1dce 100644 --- a/includes/libs/objectcache/WANObjectCache.php +++ b/includes/libs/objectcache/WANObjectCache.php @@ -890,6 +890,7 @@ class WANObjectCache implements IExpiringStore, LoggerAwareInterface { * Default: WANObjectCache::STALE_TTL_NONE * @return mixed Value found or written to the key * @note Options added in 1.28: version, busyValue, hotTTR, ageNew, pcGroup, minAsOf + * @note Options added in 1.31: staleTTL, graceTTL * @note Callable type hints are not used to avoid class-autoloading */ final public function getWithSetCallback( $key, $ttl, $callback, array $opts = [] ) { @@ -1502,7 +1503,7 @@ class WANObjectCache implements IExpiringStore, LoggerAwareInterface { } /** - * Disable the use of brief caching for tombstoned keys + * Enable or disable the use of brief caching for tombstoned keys * * When a key is purged via delete(), there normally is a period where caching * is hold-off limited to an extremely short time. This method will disable that