A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.mediawiki.org/wiki/Manual:UpdateArticleCount.php below:

Manual:updateArticleCount.php - MediaWiki

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.

Option Description Required --update Update the site_stats table with the new count Optional --use-master Count using the primary database Optional
php maintenance/run.php updateArticleCount [ --update| --use-master ]

Terminal

$ php maintenance/run.php updateArticleCount

Counting articles...found 40.

In MediaWiki version

1.39.13

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.

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4