X-Git-Url: https://git.cyclocoop.org/%28%28?a=blobdiff_plain;f=includes%2Flibs%2Fobjectcache%2FWANObjectCache.php;h=621ad424268add3ba9e40edb0273609e1c0c3313;hb=9e56569f9f37b06b4df44af2356975f051cc7c64;hp=6c69b14fb521a7e5ec758ed26b701a3d7c19cee4;hpb=52f3722727432e2308db086fcc0c7b596deb95cd;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/libs/objectcache/WANObjectCache.php b/includes/libs/objectcache/WANObjectCache.php index 6c69b14fb5..621ad42426 100644 --- a/includes/libs/objectcache/WANObjectCache.php +++ b/includes/libs/objectcache/WANObjectCache.php @@ -86,7 +86,7 @@ class WANObjectCache { /** Default time-since-expiry on a miss that makes a key "hot" */ const LOCK_TSE = 1; - /** Idiom for set()/getWithSetCallback() TTL */ + /** Idiom for set()/getWithSetCallback() TTL being "forever" */ const TTL_NONE = 0; /** Idiom for getWithSetCallback() callbacks to avoid calling set() */ const TTL_UNCACHEABLE = -1; @@ -556,8 +556,8 @@ class WANObjectCache { * * return CatConfig::newFromRow( $dbr->selectRow( ... ) ); * }, - * // Calling touchCheckKey() on this key invalidates the cache * array( + * // Calling touchCheckKey() on this key invalidates the cache * 'checkKeys' => array( wfMemcKey( 'site-cat-config' ) ), * // Try to only let one datacenter thread manage cache updates at a time * 'lockTSE' => 30 @@ -581,9 +581,9 @@ class WANObjectCache { * * return CatState::newFromResults( $dbr->select( ... ) ); * }, - * // The "check" keys that represent things the value depends on; - * // Calling touchCheckKey() on any of them invalidates the cache * array( + * // The "check" keys that represent things the value depends on; + * // Calling touchCheckKey() on any of them invalidates the cache * 'checkKeys' => array( * wfMemcKey( 'sustenance-bowls', $cat->getRoomId() ), * wfMemcKey( 'people-present', $cat->getHouseId() ),