Jump to content
MediaWiki

Manual:initSiteStats.php

From mediawiki.org
(Redirected from Manual:InitStats.php)
MediaWiki file: initSiteStats.php
Location: maintenance/
Source code: master1.43.11.42.61.39.12
Classes: InitSiteStats

initSiteStats.php is a MediaWiki maintenance script to re-initialise or update/regenerate the site_stats table.

It should be run periodically (e.g. weekly) with the --active parameter to update the active users statistic (see also $wgActiveUserDays).

Usage

[edit ]
php maintenance/run.php initSiteStats --update
In MediaWiki version 1.39.12 and earlier, you must invoke maintenance scripts using php maintenance/scriptName.php instead of php maintenance/run.php scriptName.

Script specific parameters

[edit ]
Option/Parameter Description
--update Update the existing statistics.
--active Also update active users count.
--use-master Count using the master database.

See also

[edit ]

AltStyle によって変換されたページ (->オリジナル) /