Added a tombstone comment to WANObjectCache
authorAaron Schulz <aschulz@wikimedia.org>
Thu, 13 Aug 2015 22:54:44 +0000 (15:54 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Thu, 13 Aug 2015 22:54:44 +0000 (15:54 -0700)
Change-Id: Ia8c2fc4d4bbb741a6cd7aaa6f3ae433e65743b29

includes/libs/objectcache/WANObjectCache.php

index e8837b3..2d54681 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