Jump to content
MediaWiki

Manual:$wgFeatureShutdown

From mediawiki.org
Languages:
Miscellaneous settings: $wgFeatureShutdown
Allow temporarily disabling use of certain features.
Introduced in version:1.44.0 (Gerrit change 722940; git #1c87dc00)
Removed in version:Still in use
Allowed values:(array)
Default value:[]
Other settings: Alphabetical | By function

Details

[edit ]

Allow temporarily disabling use of certain features. Useful for large site operators to push people to newer APIs while still keeping the breakage short and contained. This should be an array, where a key is a feature name and the value is an array of shutdown arrays, each containing the following keys:

  • 'start' - Shutdown start, parsed with strtotime(). (required)
  • 'end' - Shutdown end, parsed with strtotime(). (required)
  • 'percentage' - Number between 0 and 100. If set, only a certain percentage of requests will be blocked.

For example:

$wgFeatureShutdown = [
	'pre-1.24-tokens' => [
		[
			'start' => '2021年07月01日T00:00 +00:00',
			'end' => '2021年08月01日T00:00 +00:00',
			'percentage' => 50,
		],
	],
];

AltStyle によって変換されたページ (->オリジナル) /