[ObjectCache.php] Add comment describing that CACHE_ANYTHING will use whatever is...
authorKrinkle <krinkle@users.mediawiki.org>
Sun, 4 Mar 2012 22:53:05 +0000 (22:53 +0000)
committerKrinkle <krinkle@users.mediawiki.org>
Sun, 4 Mar 2012 22:53:05 +0000 (22:53 +0000)
includes/objectcache/ObjectCache.php

index 77ca837..b260e37 100644 (file)
@@ -71,6 +71,13 @@ class ObjectCache {
 
        /**
         * Factory function referenced from DefaultSettings.php for CACHE_ANYTHING
+        *
+        * CACHE_ANYTHING means that stuff has to be cached, not caching is not an option.
+        * If a caching method is configured for any of the main caches ($wgMainCacheType,
+        * $wgMessageCacheType, $wgParserCacheType), then CACHE_ANYTHING will effectively
+        * be an alias to the configured cache choise for that.
+        * If no cache choise is configured (by default $wgMainCacheType is CACHE_NONE),
+        * then CACHE_ANYTHING will forward to CACHE_DB.
         */
        static function newAnything( $params ) {
                global $wgMainCacheType, $wgMessageCacheType, $wgParserCacheType;