Manual:UpdateSpecialPages.php/zh

Category:MediaWiki code/zh#UpdateSpecialPages.php

细节

updateSpecialPages.php file is a maintenance script to update the information on the special pages that cache results in the querycache table. This information includes Special:WantedTemplates, Special:Wantedpages and Special:Wantedfiles among many others. A full list is found in QueryPage.php. Extensions may extend this list using the wgQueryPages hook so that special pages added by that extension will be covered by this maintenance script.

The configuration setting $wgDisableQueryPageUpdate can be used to exclude certain special pages from being updated.

用法

MW 1.39.x and earlier:
php maintenance/updateSpecialPages.php
MW 1.40.x and later:
php maintenance/run.php updateSpecialPages

选项

选项/参数描述
--list只列出特殊頁面名稱,不執行更新。
--only=页面只更新「頁面」。 It's case sensitive, check correct case by calling this script with --list. 例子: --only=BrokenRedirects
--overrideAlso update pages that have updates disabled by $wgDisableQueryPageUpdate .
Category:Maintenance scripts/zh#UpdateSpecialPages.php
Category:Maintenance scripts/zh Category:MediaWiki code/zh