Manual:RecountCategories.php

Details
recountCategories.php is a maintenance>Special:MyLanguage/Manual:Maintenance scripts|maintenance script used to update the counts of categories>Special:MyLanguage/Manual:Categories|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 ).

Usage
 php maintenance/recountCategories.php --mode=pages php maintenance/recountCategories.php --mode=subcats php maintenance/recountCategories.php --mode=files