Manual:UpdateArticleCount.php/ko
Appearance
| 미디어위키 버전: | ≥ 1.6 |
| 미디어위키 파일: updateArticleCount.php | |
|---|---|
| 위치: | maintenance/ |
| 소스 코드: | master • 1.46.0 • 1.45.4 • 1.43.9 |
| 클래스: | 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.
옵션
| 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
$ php maintenance/run.php updateArticleCount Counting articles...found 40.
In MediaWiki version 미디어위키 1.39 and earlier, you must invoke maintenance scripts using
php maintenance/scriptName.php instead of php maintenance/run.php scriptName.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.