Manual:UpdateArticleCount.php/ru
Appearance
Outdated translations are marked like this.
| Версия MediaWiki: | ≥ 1.6 |
| Файл MediaWiki: updateArticleCount.php | |
|---|---|
| Расположение: | maintenance/ |
| Исходный код: | master • 1.45.1 • 1.44. • 1.39.16 |
| Классы: | UpdateArticleCount |
updateArticleCount.inc.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 |
По желанию |
| --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 версии 1.39.16 и ранее скрпиты обслуживания нужно вызывать через
php maintenance/scriptName.php, а не через 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.