Manual:purgeChangedFiles.php
Appearance
| MediaWiki バージョン: | ≧ 1.22 |
| MediaWiki ファイル: purgeChangedFiles.php | |
|---|---|
| 場所: | maintenance/ |
| ソース コード: | master • 1.45.1 • 1.44. • 1.39.16 |
| クラス: | 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.
オプション/引数
| オプション | 説明 | 必須かどうか |
|---|---|---|
| --starttime | 開始タイムスタンプ | 必須 |
| --endtime | 終了タイムスタンプ | 必須 |
| --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 | 省略可能 |
使用法
php maintenance/run.php purgeChangedFiles --starttime dt1 --endtime dt2 [ --type| --htcp-dest| --dry-run| --sleep-per-batch| --verbose ]
MediaWiki バージョン 1.39.16 以前では、メンテナンス スクリプトを
php maintenance/run.php スクリプト名 ではなく php maintenance/スクリプト名.php を使用して実行する必要があります。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
一掃
Terminal
$ php maintenance/run.php purgeChangedFiles --starttime 20210101 --endtime 20211231