r112985 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r112984‎ | r112985 | r112986 >
Date:22:53, 4 March 2012
Author:krinkle
Status:ok (Comments)
Tags:
Comment:
[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) (history)

Diff [purge]

Index: trunk/phase3/includes/objectcache/ObjectCache.php
@@ -71,6 +71,13 @@
7272
7373 /**
7474 * Factory function referenced from DefaultSettings.php for CACHE_ANYTHING
 75+ *
 76+ * CACHE_ANYTHING means that stuff has to be cached, not caching is not an option.
 77+ * If a caching method is configured for any of the main caches ($wgMainCacheType,
 78+ * $wgMessageCacheType, $wgParserCacheType), then CACHE_ANYTHING will effectively
 79+ * be an alias to the configured cache choise for that.
 80+ * If no cache choise is configured (by default $wgMainCacheType is CACHE_NONE),
 81+ * then CACHE_ANYTHING will forward to CACHE_DB.
7582 */
7683 static function newAnything( $params ) {
7784 global $wgMainCacheType, $wgMessageCacheType, $wgParserCacheType;

Sign-offs

UserFlagDate
Nikerabbitinspected07:34, 5 March 2012

Follow-up revisions

RevisionCommit summaryAuthorDate
r113346[ObjectCache.php] typo from r112985krinkle03:19, 8 March 2012

Comments

#Comment by Aaron Schulz (talk | contribs)   06:57, 5 March 2012

s/choise/choice

Status & tagging log