X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2FDefaultSettings.php;h=fa6f13a1c6dc66cf8402f5e138ff2d32e9588ee6;hb=2bfde3516cffe010426ba31c9f920b553c9f5dac;hp=d20b9314aa9f4b7097de7f2741e61584de812302;hpb=f2b7298278815d7236907cb460d6240a7b018e93;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index d20b9314aa..fa6f13a1c6 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -2211,7 +2211,7 @@ $wgObjectCaches = array( CACHE_DB => array( 'class' => 'SqlBagOStuff', 'loggroup' => 'SQLBagOStuff' ), CACHE_ANYTHING => array( 'factory' => 'ObjectCache::newAnything' ), - CACHE_ACCEL => array( 'factory' => 'ObjectCache::newAccelerator' ), + CACHE_ACCEL => array( 'factory' => 'ObjectCache::getLocalServerInstance' ), CACHE_MEMCACHED => array( 'class' => 'MemcachedPhpBagOStuff', 'loggroup' => 'memcached' ), 'db-replicated' => array( @@ -2358,8 +2358,15 @@ $wgMemCachedPersistent = false; $wgMemCachedTimeout = 500000; /** - * Set this to true to make a local copy of the message cache, for use in - * addition to memcached. The files will be put in $wgCacheDirectory. + * Set this to true to maintain a copy of the message cache on the local server. + * + * This layer of message cache is in addition to the one configured by $wgMessageCacheType. + * + * The local copy is put in APC. If APC is not installed, this setting does nothing. + * + * Note that this is about the message cache, which stores interface messages + * maintained as wiki pages. This is separate from the localisation cache for interface + * messages provided by the software, which is configured by $wgLocalisationCacheConf. */ $wgUseLocalMessageCache = false; @@ -5285,13 +5292,6 @@ $wgRateLimits = array( ), ); -/** - * Set to a filename to log rate limiter hits. - * - * @deprecated since 1.23, use $wgDebugLogGroups['ratelimit'] instead - */ -$wgRateLimitLog = null; - /** * Array of IPs which should be excluded from rate limits. * This may be useful for whitelisting NAT gateways for conferences, etc. @@ -7020,8 +7020,8 @@ $wgLogActionsHandlers = array( 'delete/event' => 'DeleteLogFormatter', 'delete/restore' => 'DeleteLogFormatter', 'delete/revision' => 'DeleteLogFormatter', - 'import/interwiki' => 'LogFormatter', - 'import/upload' => 'LogFormatter', + 'import/interwiki' => 'ImportLogFormatter', + 'import/upload' => 'ImportLogFormatter', 'managetags/activate' => 'LogFormatter', 'managetags/create' => 'LogFormatter', 'managetags/deactivate' => 'LogFormatter', @@ -7325,6 +7325,13 @@ $wgAPIMaxResultSize = 8388608; */ $wgAPIMaxUncachedDiffs = 1; +/** + * Maximum amount of DB lag on a majority of DB slaves to tolerate + * before forcing bots to retry any write requests via API errors. + * This should be lower than the 'max lag' value in $wgLBFactoryConf. + */ +$wgAPIMaxLagThreshold = 7; + /** * Log file or URL (TCP or UDP) to log API requests to, or false to disable * API request logging