Jump to content

手册:updateArticleCount.php

From mediawiki.org
This page is a translated version of the page Manual:UpdateArticleCount.php and the translation is 46% complete.
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/run.php updateArticleCount [ --update| --use-master ]
Terminal
在MediaWiki 1.39.16 及更早版本中,您必须通过php maintenance/脚本名称.php调用维护脚本,而不是php maintenance/run.php 脚本名称

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

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

Terminal

参阅