Manual:updateArticleCount.php
Appearance
| MediaWiki バージョン: | ≧ 1.6 |
| MediaWiki ファイル: updateArticleCount.php | |
|---|---|
| 場所: | maintenance/ |
| ソース コード: | master • 1.46.2 • 1.45.6 • 1.43.11 |
| クラス: | UpdateArticleCount |
updateArticleCount.php is a maintenance script which updates the article count.
It simply counts the total articles on the wiki and updates the statistics in site_stats table.
オプション
| オプション | 説明 | 必須かどうか |
|---|---|---|
| --update | Update the site_stats table with the new count |
省略可能 |
| --use-master | Count using the primary database | 省略可能 |
使用法
php maintenance/run.php updateArticleCount [ --update| --use-master ]
Terminal
$ php maintenance/run.php updateArticleCount Counting articles...found 40.
MediaWiki バージョン MediaWiki 1.39 以前では、メンテナンス スクリプトを
php maintenance/run.php スクリプト名 ではなく php maintenance/スクリプト名.php を使用して実行する必要があります。It will only count the number of articles and output the result, without updating the value.
To update the site statistics table, run the script with the --update option.
Terminal
$ php maintenance/run.php updateArticleCount --update Counting articles...found 40. Updating site statistics table... done.