From: Timo Tijhof Date: Thu, 13 Jun 2019 01:08:53 +0000 (+0100) Subject: DevelopmentSettings: Remove redundant CacheType overrides X-Git-Tag: 1.34.0-rc.0~1434^2 X-Git-Url: http://git.cyclocoop.org/%22.%20%20%20generer_url_action%28%22logout%22%2C%22logout=prive%22%29%20.%20%20%20%22?a=commitdiff_plain;h=35fc6499f79f792d2fb11907a1b16fbffd1cee3b;p=lhc%2Fweb%2Fwiklou.git DevelopmentSettings: Remove redundant CacheType overrides Follows-up 5a090c29822. This is no longer needed as of 7e0fb4fff6, which will add this to the generated LocalSettings.php file automatically. The installer now sets MainCacheType for CLI installs, the same way as the web installer did already. The secondary cache types have as default CACHE_ANYTHING (not CACHE_NONE) and will automatically inherit from MainCacheType. This commit unbreaks situations where developers have MainCache set to something (e.g. Redis, or Memc) which after 5a090c29822 caused other types to go to APC instead of Memc. Bug: T225496 Change-Id: Ib2824a6d316912daf09672de748726b91e4de449 --- diff --git a/includes/DevelopmentSettings.php b/includes/DevelopmentSettings.php index 882047b49a..c558aee8f6 100644 --- a/includes/DevelopmentSettings.php +++ b/includes/DevelopmentSettings.php @@ -14,7 +14,7 @@ */ /** - * Debugging: PHP + * Debugging for PHP */ // Enable showing of errors @@ -22,7 +22,7 @@ error_reporting( -1 ); ini_set( 'display_errors', 1 ); /** - * Debugging: MediaWiki + * Debugging for MediaWiki */ global $wgDevelopmentWarnings, $wgShowExceptionDetails, $wgShowHostnames, $wgDebugRawPage, $wgSQLMode, $wgCommandLineMode, $wgDebugLogFile, @@ -53,9 +53,3 @@ if ( $logDir ) { $wgDebugLogGroups['error'] = "$logDir/mw-error.log"; } unset( $logDir ); -// Make caching faster -$wgMainCacheType = CACHE_ACCEL; -$wgMessageCacheType = CACHE_ACCEL; -$wgParserCacheType = CACHE_ACCEL; -$wgSessionCacheType = CACHE_ACCEL; -$wgLanguageConverterCacheType = CACHE_ACCEL;