Jump to content

Manual:updateArticleCount.php

From mediawiki.org
MediaWiki version:
1.6

updateArticleCount.php is a maintenance script which updates the article count.

It simply counts the total articles on the wiki and updates the statistics in site_stats table.

Options

[edit]
Option Description Required
--update Update the site_stats table with the new count Optional
--use-master Count using the primary database Optional

Usage

[edit]
php maintenance/updateArticleCount.php [ --update| --use-master ]
Terminal

It will only count the number of articles and output the result, without updating the value.

To update the site statistics table, run the script with the --update option.

Terminal

See also

[edit]