Manual:updateArticleCount.php

From Linux Web Expert

Revision as of 17:21, 23 February 2022 by imported>APaskulin (WMF)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<td class="mw-version-versionbox" title="<translate nowrap> The latest stable version is <tvar name=1>1.41</tvar></translate>">
<translate> ≥</translate> 1.6
<translate> MediaWiki version:</translate>

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 <translate> Optional</translate>
--use-master Count using the primary database <translate> Optional</translate>

Usage

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