Jump to content

Manual:initSiteStats.php

From mediawiki.org
This page is a translated version of the page Manual:InitSiteStats.php and the translation is 100% complete.

initSiteStats.php は、site_stats テーブルを再初期化/更新/再生成する MediaWiki のメンテナンス スクリプトです。

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

使用法

php maintenance/run.php initSiteStats --update
MediaWiki バージョン 1.39.12 以前では、メンテナンス スクリプトを php maintenance/run.php scriptName ではなく php maintenance/scriptName.php を使用して実行する必要があります。

スクリプト固有のパラメーター

オプション/パラメーター 説明
--update 既存の統計を更新
--active 活発な利用者の数も更新
--use-master マスターデータベースで数える

関連項目