Manual:$wgFeatureShutdown

Category:MediaWiki configuration settings#FeatureShutdownCategory:MediaWiki configuration settings introduced in version 1.44.0#FeatureShutdownCategory:MediaWiki configuration settings still in use#FeatureShutdownCategory:Miscellaneous settings variables#FeatureShutdown
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:[]

Details

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-01T00:00 +00:00',
			'end' => '2021-08-01T00:00 +00:00',
			'percentage' => 50,
		],
	],
];
Category:MediaWiki configuration settings Category:MediaWiki configuration settings introduced in version 1.44.0 Category:MediaWiki configuration settings still in use Category:Miscellaneous settings variables