手册:initSiteStats.php
Appearance
| MediaWiki文件: initSiteStats.php | |
|---|---|
| 位置: | maintenance/ |
| 源代码: | master • 1.45.1 • 1.44.3 • 1.43.6 |
| 类: | 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
脚本特定参数
| 选项/参数 | 描写 |
|---|---|
| --update | 更新现有统计数据。 |
| --active | 还可以更新活动用户数。 |
| --use-master | 使用主数据库进行计数。 |