MediaWiki version:
1.35
MediaWiki file: populateCategory.php
Location: maintenance/
Source code: master 1.40.0 1.39.4 1.35.11
Classes: PopulateCategory

Details

populateCategory.php file is a maintenance script to populate the category table. This table keeps track of how many articles, files and subcategories are in a category. It is also used for displaying information on Special:Categories page. This script is automatically run by update.php if updating from before MediaWiki 1.13.

This script was removed for MediaWiki version 1.36 and later.

If you have incorrect counts of how many articles are in a category, see Manual:RecountCategories.php instead.

Options/Arguments

Option Description Required?
--begin Only do categories whose names are alphabetically after the provided nameOptional
--throttle Wait this many milliseconds after each category. Default: 0Optional
--force Run regardless of whether the database says it's been run alreadyOptional

Usage

php maintenance/populateCategory.php [ --begin| --throttle| --force ]


Terminal
$ php maintenance/populateCategory.php
When the script has finished, it will make a note of this in the database, and will not run again without the --force option.

See also

  • Manual:RecountCategories.php
  • Manual:CleanupEmptyCategories.php
  • Manual:CategoryChangesAsRdf.php
  • Manual:DumpCategoriesAsRdf.php
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.