Podręcznik:InitSiteStats.php
Appearance
| Plik MediaWiki: initSiteStats.php | |
|---|---|
| Lokalizacja: | maintenance/ |
| Kod źródłowy: | master • 1.45.1 • 1.44.3 • 1.43.6 |
| Klasy: | InitSiteStats |
initSiteStats.php is a MediaWiki maintenance script to re-initialise or update/regenerate the site_stats table.
It should be run periodically (e.g. weekly) with the --active parameter to update the active users statistic (see also $wgActiveUserDays).
Użycie
php maintenance/run.php initSiteStats --update
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.Script specific parameters
| Opcja/Parametr | Opis |
|---|---|
| --update | Update the existing statistics. |
| --active | Also update active users count. |
| --use-master | Count using the master database. |