objectcache: improve WANObjectCache reap method comments
authorAaron Schulz <aschulz@wikimedia.org>
Thu, 15 Feb 2018 19:48:48 +0000 (11:48 -0800)
committerAaron Schulz <aschulz@wikimedia.org>
Thu, 15 Feb 2018 19:53:45 +0000 (11:53 -0800)
Change-Id: Icec0846b0e66229af39bb819d75144734fd111bf

includes/libs/objectcache/WANObjectCache.php

index eec766b..58d359c 100644 (file)
@@ -1536,7 +1536,7 @@ class WANObjectCache implements IExpiringStore, LoggerAwareInterface {
        }
 
        /**
-        * Locally set a key to expire soon if it is stale based on $purgeTimestamp
+        * Set a key to soon expire in the local cluster if it pre-dates $purgeTimestamp
         *
         * This sets stale keys' time-to-live at HOLDOFF_TTL seconds, which both avoids
         * broadcasting in mcrouter setups and also avoids races with new tombstones.
@@ -1568,7 +1568,7 @@ class WANObjectCache implements IExpiringStore, LoggerAwareInterface {
        }
 
        /**
-        * Locally set a "check" key to expire soon if it is stale based on $purgeTimestamp
+        * Set a "check" key to soon expire in the local cluster if it pre-dates $purgeTimestamp
         *
         * @param string $key Cache key
         * @param int $purgeTimestamp UNIX timestamp of purge