Manual:InitEditCount.php/pl
Appearance
| Wersja MediaWiki: | ≥ 1.8 |
| Plik MediaWiki: initEditCount.php | |
|---|---|
| Lokalizacja: | maintenance/ |
| Kod źródłowy: | master • 1.45.1 • 1.44.3 • 1.43.6 |
| Klasy: | InitEditCount |
Details
initEditCount.php file is a maintenance script to init the user_editcount database field based on the number of rows in the revision table.
Options
| Option | Description | Required? |
|---|---|---|
| --quick | Force the update to be done in a single query | Optional |
| --background | Force replication-friendly mode | Optional |
Background mode will be automatically used if multiple servers are listed in the load balancer, usually indicating a replication environment. This avoids locking tables or lagging replica databases with large updates.
Usage
php maintenance/run.php initEditCount [ --quick| --background ]
Terminal
$ php maintenance/run.php initEditCount --background Using replication-friendly background mode... mediawiki_db 4 (100.0%) done in 0.0 secs (769.385 accounts/sec). Done!
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.