Manual:UpdateArticleCount.php/zh

MediaWiki版本:
1.6
Category:MediaWiki code/zh#UpdateArticleCount.php

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 countOptional
--use-master Count using the primary databaseOptional

用法

php maintenance/run.php updateArticleCount [ --update| --use-master ]
Terminal
In MediaWiki version 1.39.12 and earlier, you must invoke maintenance scripts using php maintenance/scriptName.php instead of php maintenance/run.php scriptName.

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

要实际更新站点统计表,请使用--update参数运行脚本。

Terminal

参见

Category:Maintenance scripts/zh#UpdateArticleCount.php Category:Stats maintenance scripts/zh
Category:Maintenance scripts/zh Category:MediaWiki code/zh Category:Stats maintenance scripts/zh