Руководство:Rebuildrecentchanges.php
Appearance
Версия MediaWiki: | ≥ 1.2 |
Файл MediaWiki: rebuildrecentchanges.php | |
---|---|
Расположение: | maintenance/ |
Исходный код: | master • 1.42.3 • 1.41.4 • 1.39.10 |
Классы: | RebuildRecentchanges |
Подробнее
rebuildrecentchanges.php файл представляет собой скрипт технического обслуживания, для восстановления последних изменений с нуля.
Options/Arguments
Option | Description | Required? |
---|---|---|
--from | Only rebuild rows in requested time range (in YYYYMMDDHHMMSS format) | По желанию |
--to | Only rebuild rows in requested time range (in YYYYMMDDHHMMSS format) | По желанию |
--wiki | Select a wiki when installation is working as a wiki family | По желанию |
Использование
php maintenance/rebuildrecentchanges.php [ --from| --to | --wiki]
Terminal
$ php maintenance/rebuildrecentchanges.php 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.