Справочник:PurgeChangedFiles.php
Appearance
Outdated translations are marked like this.
| Версия MediaWiki: | ≥ 1.22 |
| Файл MediaWiki: purgeChangedFiles.php | |
|---|---|
| Расположение: | maintenance/ |
| Исходный код: | master • 1.44.2 • 1.43.5 • 1.39.15 |
| Классы: | PurgeChangedFiles |
подробности
Файл purgeChangedFiles.php -- это сценарий обслуживания сканирующий журнал удалений и окончательно удаляющий файлы, превышающие срок хранения. This script processes 100 items in a batch.
Options/Arguments
| Option | Description | Required? |
|---|---|---|
| --starttime | Starting timestamp | Обязательно |
| --endtime | Ending timestamp | Обязательно |
| --type | Comma-separated list of types of changes to send purges for: created, deleted, modified, all | По желанию |
| --htcp-dest | HTCP announcement destination (IP:port) | По желанию |
| --dry-run | Do not send purge requests | По желанию |
| --sleep-per-batch | Milliseconds to sleep between batches | По желанию |
| --verbose | Show more output | По желанию |
Usage
php maintenance/run.php purgeChangedFiles --starttime dt1 --endtime dt2 [ --type| --htcp-dest| --dry-run| --sleep-per-batch| --verbose ]
В MediaWiki версии 1.39.15 и ранее скрпиты обслуживания нужно вызывать через
php maintenance/scriptName.php, а не через php maintenance/run.php scriptName.Dry run to check purging
Terminal
$ php maintenance/run.php purgeChangedFiles --starttime 20210101 --endtime 20211231 --dry-run Checking for created files... Scanning for upload/upload Scanning for import/upload,interwiki Checking for deleted files... Scanning for delete/delete,revision Scanning for suppress/delete,revision Checking for modified files... Scanning for upload/overwrite,revert Scanning for move/move,move_redir
Purging
Terminal
$ php maintenance/run.php purgeChangedFiles --starttime 20210101 --endtime 20211231