GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Main page
  • Get MediaWiki
  • Get extensions
  • Tech blog
  • Contribute
  • User help
  • FAQ
  • Technical manual
  • Support desk
  • Communication
  • Developer portal
  • Code statistics
  • Community portal
  • Recent changes

This view

  • Original page
  • New address

GeezerVison is showing www.mediawiki.org — Manual:updateArticleCount.php - MediaWiki

MediaWiki version:
≥ 1.6
MediaWiki file: updateArticleCount.php
Location: maintenance/
Source code: master • 1.46.2 • 1.45.6 • 1.43.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 count Optional
--use-master Count using the primary database Optional

Usage

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

Counting articles...found 40.
In MediaWiki version MediaWiki 1.39 and earlier, you must invoke maintenance scripts using php maintenance/scriptName.php instead of php maintenance/run.php scriptName.

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

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

See also

  • Manual:InitSiteStats.php
  • Manual:ShowSiteStats.php
  • Manual:Update.php
Retrieved from "https://www.mediawiki.org/w/index.php?title=Manual:UpdateArticleCount.php&oldid=8572526"
Categories:
  • MediaWiki code pages without namespaces
  • MediaWiki code
  • Maintenance scripts
  • Stats maintenance scripts
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.