Manual:PurgeChangedFiles.php/ko
Appearance
| 미디어위키 버전: | ≥ 1.22 |
| 미디어위키 파일: purgeChangedFiles.php | |
|---|---|
| 위치: | maintenance/ |
| 소스 코드: | master • 1.46.2 • 1.45.6 • 1.43.11 |
| 클래스: | PurgeChangedFiles |
상세
purgeChangedFiles.php file is a maintenance script to scan the logging table and to purge affected files and thumbnails within a timeframe. This script processes 100 items in a batch.
옵션/인수
| Option | Description | Required? |
|---|---|---|
| --starttime | Starting timestamp | Required |
| --endtime | Ending timestamp | Required |
| --type | Comma-separated list of types of changes to send purges for: created, deleted, modified, all | Optional |
| --htcp-dest | HTCP announcement destination (IP:port) | Optional |
| --dry-run | Do not send purge requests | Optional |
| --sleep-per-batch | Milliseconds to sleep between batches | Optional |
| --verbose | Show more output | Optional |
사용법
php maintenance/run.php purgeChangedFiles --starttime dt1 --endtime dt2 [ --type| --htcp-dest| --dry-run| --sleep-per-batch| --verbose ]
In MediaWiki version 미디어위키 1.39 and earlier, you must invoke maintenance scripts using
php maintenance/scriptName.php instead of 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