MediaWiki version:
1.6
MediaWiki file: updateArticleCount.php
Location: maintenance/
Source code: master 1.40.0 1.39.4 1.35.11
Classes: UpdateArticleCount

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

Option Description Required
--update Update the site_stats table with the new countOptional
--use-master Count using the primary databaseOptional

Usage

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

Counting articles...found 40.

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
$ php maintenance/updateArticleCount.php --update

Counting articles...found 40.
Updating site statistics table... done.

See also

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