X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FDefaultSettings.php;h=2ae33b2584dc010bfd3b0794344aa471d632ce2b;hb=fbc80326a60cf6b8cd9081339924761f050766a1;hp=8180443347b26d3e873d34f8ab61b1bda256af92;hpb=1319754d6633db31ba03ab69bc2e6d347f2f67fc;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 8180443347..2ae33b2584 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -616,6 +616,11 @@ $wgUploadDialog = [ * Additional parameters are specific to the file backend class used. * These settings should be global to all wikis when possible. * + * FileBackendMultiWrite::__construct() is augmented with a 'template' option that + * can be used in any of the values of the 'backends' array. Its value is the name of + * another backend in $wgFileBackends. When set, it pre-fills the array with all of the + * configuration of the named backend. Explicitly set values in the array take precedence. + * * There are two particularly important aspects about each backend: * - a) Whether it is fully qualified or wiki-relative. * By default, the paths of files are relative to the current wiki, @@ -2206,7 +2211,7 @@ $wgCacheDirectory = false; * - CACHE_NONE: Do not cache * - CACHE_DB: Store cache objects in the DB * - CACHE_MEMCACHED: MemCached, must specify servers in $wgMemCachedServers - * - CACHE_ACCEL: APC, XCache or WinCache + * - CACHE_ACCEL: APC, APCU, XCache or WinCache * - (other): A string may be used which identifies a cache * configuration in $wgObjectCaches. * @@ -2283,6 +2288,7 @@ $wgObjectCaches = [ ], 'apc' => [ 'class' => 'APCBagOStuff', 'reportDupes' => false ], + 'apcu' => [ 'class' => 'APCUBagOStuff', 'reportDupes' => false ], 'xcache' => [ 'class' => 'XCacheBagOStuff', 'reportDupes' => false ], 'wincache' => [ 'class' => 'WinCacheBagOStuff', 'reportDupes' => false ], 'memcached-php' => [ 'class' => 'MemcachedPhpBagOStuff', 'loggroup' => 'memcached' ], @@ -5527,13 +5533,7 @@ $wgApplyIpBlocksToXff = false; * elapses. * * @par Example: - * To set a generic maximum of 4 hits in 60 seconds: - * @code - * $wgRateLimits = [ 4, 60 ]; - * @endcode - * - * @par Example: - * You could also limit per action and then type of users. + * Limits per configured per action and then type of users. * @code * $wgRateLimits = [ * 'edit' => [ @@ -5542,8 +5542,20 @@ $wgApplyIpBlocksToXff = false; * 'newbie' => [ x, y ], // each new autoconfirmed accounts; overrides 'user' * 'ip' => [ x, y ], // each anon and recent account * 'subnet' => [ x, y ], // ... within a /24 subnet in IPv4 or /64 in IPv6 + * 'groupName' => [ x, y ], // by group membership * ] - * ] + * ]; + * @endcode + * + * @par Normally, the 'noratelimit' right allows a user to bypass any rate + * limit checks. This can be disabled on a per-action basis by setting the + * special '&can-bypass' key to false in that action's configuration. + * @code + * $wgRateLimits = [ + * 'some-action' => [ + * '&can-bypass' => false, + * 'user' => [ x, y ], + * ]; * @endcode * * @warning Requires that $wgMainCacheType is set to something persistent @@ -6017,7 +6029,7 @@ $wgTrxProfilerLimits = [ 'JobRunner' => [ 'readQueryTime' => 30, 'writeQueryTime' => 5, - 'maxAffected' => 1000 + 'maxAffected' => 500 // ballpark of $wgUpdateRowsPerQuery ], // Command-line scripts 'Maintenance' => [