Manual:UpdateArticleCount.php/pl
Appearance
| Wersja MediaWiki: | ≥ 1.6 |
| Plik MediaWiki: updateArticleCount.php | |
|---|---|
| Lokalizacja: | maintenance/ |
| Kod źródłowy: | master • 1.45.3 • 1.44.5 • 1.43.8 |
| Klasy: | 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.
Opcje
| Opcja | Opis | Wymagane |
|---|---|---|
| --update | Update the site_stats table with the new count |
Optional |
| --use-master | Count using the primary database | Optional |
Usage
php maintenance/run.php updateArticleCount [ --update| --use-master ]
Terminal
$ php maintenance/run.php updateArticleCount Counting articles...found 40.
W wersji MediaWiki MediaWiki 1.39 i we wcześniejszych musisz wywoływać skrypty konserwacyjne poprzez
php maintenance/nazwaSkryptu.php zamiast php maintenance/run.php nazwaSkryptu.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.