https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112985

Revision: 112985
Author:   krinkle
Date:     2012-03-04 22:53:05 +0000 (Sun, 04 Mar 2012)
Log Message:
-----------
[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.

Modified Paths:
--------------
    trunk/phase3/includes/objectcache/ObjectCache.php

Modified: trunk/phase3/includes/objectcache/ObjectCache.php
===================================================================
--- trunk/phase3/includes/objectcache/ObjectCache.php   2012-03-04 21:08:55 UTC 
(rev 112984)
+++ trunk/phase3/includes/objectcache/ObjectCache.php   2012-03-04 22:53:05 UTC 
(rev 112985)
@@ -71,6 +71,13 @@
 
        /**
         * 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;


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to