手册:initSiteStats.php
MediaWiki文件: initSiteStats.php | |
---|---|
位置: | maintenance/ |
源代码: | master • 1.43.0 • 1.42.5 • 1.39.11 |
类: | InitSiteStats |
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
In MediaWiki version 1.39.10 and earlier, you must invoke maintenance scripts using
php maintenance/scriptName.php
instead of php maintenance/run.php scriptName
.
脚本特定参数
选项/参数 | 描写 |
---|---|
--update | 更新现有统计数据。 |
--active | 还可以更新活动用户数。 |
--use-master | 使用主数据库进行计数。 |