Manual:RecountCategories.php/it

Versione MediaWiki:
1.30
Category:MediaWiki code/it#RecountCategories.php

Details

recountCategories.php is a maintenance script used to update the counts of category members, if the numbers displayed on category pages are inaccurate. Durante il normale funzionamento, non dovrebbe essere necessario eseguire questo script. Tuttavia, un bug può far sì che i conteggi non vengano aggiornati correttamente (vedi T18036 e T85696 e T170737, lo script è stato eseguito su tutte le wiki pubbliche di Wikimedia il 2021-06-23).

Options/Arguments

Option Description Required?
--modeWhich category count column to recompute: one of pages, subcats or files. Required
--beginOnly recount categories with cat_id greater than the given value Optional
--throttleWait this many milliseconds after each batch. Default: 0 Optional
--skip-cleanupSkip running cleanupEmptyCategories if the "page" mode is selected Optional

Usage

php maintenance/run.php recountCategories --mode modeName [ --begin| --throttle| --skip-cleanup ]
In MediaWiki version 1.39.12 and earlier, you must invoke maintenance scripts using php maintenance/scriptName.php instead of php maintenance/run.php scriptName.

With pages mode

Terminal

With subcats mode

Terminal

With files mode

Terminal

See also

Category:Maintenance scripts/it Category:Content maintenance scripts/it
Category:Content maintenance scripts/it Category:Maintenance scripts/it Category:MediaWiki code/it