From 5985cc9da709162766a3c25b524161d3538b819c Mon Sep 17 00:00:00 2001 From: Krinkle Date: Sun, 4 Mar 2012 22:53:05 +0000 Subject: [PATCH] [ObjectCache.php] Add comment describing that CACHE_ANYTHING will use whatever is configured on the wiki for $wgMainCacheType etc., and that if those are set to CACHE_NONE (which it is by default) then CACHE_ANYTHING is CACHE_DB. --- includes/objectcache/ObjectCache.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/includes/objectcache/ObjectCache.php b/includes/objectcache/ObjectCache.php index 77ca837142..b260e3714c 100644 --- a/includes/objectcache/ObjectCache.php +++ b/includes/objectcache/ObjectCache.php @@ -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; -- 2.20.1