手册:updateArticleCount.php

This page is a translated version of the page Manual:UpdateArticleCount.php and the translation is 38% complete.
Outdated translations are marked like this.
MediaWiki版本:
1.6


updateArticleCount.php维护脚本,用于更新文章数

It simply counts the total articles on the wiki and updates the statistics in site_stats table.

Options

Option Description Required
--update Update the site_stats table with the new count Optional
--use-master Count using the primary database Optional

用法

php maintenance/updateArticleCount.php [ --update| --use-master ]
Terminal
$ php maintenance/updateArticleCount.php

Counting articles...found 40.

它只会计算文章数并输出结果,而不会更新值。

如果要实际更新站点统计表,请使用以下命令:

Terminal
$ php maintenance/updateArticleCount.php --update

Counting articles...found 40.
Updating site statistics table... done.


参见