Manual:$wgFeatureShutdown/zh
杂项设置: $wgFeatureShutdown | |
---|---|
允许暂时禁用某些功能。 |
|
引进版本: | 1.44.0 (Gerrit change 722940; git #1c87dc00) |
移除版本: | 仍在使用 |
允许的值: | () |
[] |
|
其他设置: 按首字母排序 | 按功能排序 |
Details
允许暂时禁用某些功能。 Useful for large site operators to push people to newer APIs while still keeping the breakage short and contained. 这应当是一个数组,其中键是一个功能名称,值是“关闭”数组的一个数组,其每个数组均包含以下键:
- '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,
],
],
];