手册:initSiteStats.php

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/initSiteStats.php --update

脚本特定参数

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

参见