Jump to content

手册: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.43.6 及更早版本中,您必须通过php maintenance/脚本名称.php调用维护脚本,而不是php maintenance/run.php 脚本名称

脚本特定参数

选项/参数 描写
--update 更新现有统计数据。
--active 还可以更新活动用户数。
--use-master 使用主数据库进行计数。

参阅