Merge "Added a tombstone comment to WANObjectCache"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Wed, 19 Aug 2015 00:46:12 +0000 (00:46 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 19 Aug 2015 00:46:12 +0000 (00:46 +0000)
includes/libs/objectcache/WANObjectCache.php

index 62b9296..36250b0 100644 (file)
@@ -258,7 +258,9 @@ class WANObjectCache {
         *
         * This instantiates a hold-off period where the key cannot be
         * written to avoid race conditions where dependent keys get updated
-        * with a stale value (e.g. from a DB slave).
+        * with a stale value (e.g. from a DB slave). This is implemented by
+        * storing a special "tombstone" value at the cache key that this
+        * class recognizes; get() calls will return false for the key.
         *
         * This should only be called when the underlying data (being cached)
         * changes in a significant way. If called twice on the same key, then