Manual:rebuildrecentchanges.php
Appearance
From mediawiki.org
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
MediaWiki version:
≥ 1.2
| MediaWiki file: rebuildrecentchanges.php | |
|---|---|
| Location: | maintenance/ |
| Source code: | master • 1.45.1 • 1.44.3 • 1.43.6 |
| Classes: | RebuildRecentchanges |
Details
rebuildrecentchanges.php file is a maintenance script to rebuild recent changes from scratch.
Options/Arguments
| Option | Description | Required? |
|---|---|---|
| --from | Only rebuild rows in requested time range (in YYYYMMDDHHMMSS format) | Optional |
| --to | Only rebuild rows in requested time range (in YYYYMMDDHHMMSS format) | Optional |
| --wiki | Select a wiki when installation is working as a wiki family | Optional |
Usage
phpmaintenance/run.phprebuildrecentchanges[--from|--to|--wiki]
Terminal
$ php maintenance/run.php rebuildrecentchanges Rebuilding $wgRCMaxAge=7776000 seconds (90 days) Clearing recentchanges table for time range... Loading from page and revision tables... Inserting from page and revision tables... Updating links and size differences... Loading from user and logging tables... Flagging bot account edits... Flagging auto-patrolled edits... Removing duplicate revision and logging entries... Deleting feed timestamps. Done.
Running this script marks all previously patrolled edits as unpatrolled.
In MediaWiki version 1.43.6 and earlier, you must invoke maintenance scripts using
php maintenance/scriptName.php instead of php maintenance/run.php scriptName.