Manual:recountCategories.php

From mediawiki.org
This page is a translated version of the page Manual:RecountCategories.php and the translation is 47% complete.
MediaWiki バージョン:
1.30

詳細

recountCategories.php is a maintenance script used to update the counts of category members, if the numbers displayed on category pages are inaccurate. During normal operation, it shouldn't be needed to run this script. However, a bug may cause the counts to not update properly (see タスク T18036 and タスク T85696 and タスク T170737, the script was run on all public Wikimedia wikis 2021-06-23).


オプション/引数

オプション 説明 必須かどうか
--mode Which category count column to recompute: one of pages, subcats or files. 必須
--begin Only recount categories with cat_id greater than the given value 省略可能
--throttle Wait this many milliseconds after each batch. Default: 0 省略可能
--skip-cleanup Skip running cleanupEmptyCategories if the "page" mode is selected 省略可能

使用法

php maintenance/recountCategories.php --mode modeName [ --begin| --throttle| --skip-cleanup ]


With pages mode

Terminal

With subcats mode

Terminal

With files mode

Terminal

関連項目