Jump to content

手動:$wgFeatureShutdown

From mediawiki.org
This page is a translated version of the page Manual:$wgFeatureShutdown and the translation is 50% complete.
Miscellaneous settings: $wgFeatureShutdown
允許暫時停用某啲功能嘅使用。
Introduced in version:1.44.0Gerrit change 722940; git #1c87dc00
Removed in version:Still in use
Allowed values:(陣列)
Default value:[]

詳情

允許暫時停用某啲功能嘅使用。 對於大型網站營運商嚟講,佢哋可以將人哋推送去更新嘅 API ,同時保持中斷嘅短時間同埋控制,呢個係好有用嘅。 呢個應該係一個陣列,其中一個鍵係一個特徵名稱,而個值係一個關機陣列嘅陣列,每個陣列都包含以下嘅鍵:

Name Description Required?
'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. Optional

Example

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