Manual:$wgFeatureShutdown/yue
Miscellaneous settings: $wgFeatureShutdown | |
---|---|
允許暫時停用某啲功能嘅使用。 |
|
Introduced in version: | 1.44.0 (Gerrit change 722940; git #1c87dc00) |
Removed in version: | Still in use |
Allowed values: | (陣列) |
Default value: | [] |
Other settings: Alphabetical | By function |
詳情
允許暫時停用某啲功能嘅使用。 對於大型網站營運商嚟講,佢哋可以將人哋推送去更新嘅 API ,同時保持中斷嘅短時間同埋控制,呢個係好有用嘅。 呢個應該係一個陣列,其中一個鍵係一個特徵名稱,而個值係一個關機陣列嘅陣列,每個陣列都包含以下嘅鍵:
- '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,
],
],
];