Manual:PurgeChangedFiles.php

MediaWiki version:
1.22
Category:MediaWiki code#PurgeChangedFiles.php

Details

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.

Options/Arguments

Option Description Required?
--starttime Starting timestampRequired
--endtime Ending timestampRequired
--type Comma-separated list of types of changes to send purges for: created, deleted, modified, allOptional
--htcp-destHTCP announcement destination (IP:port)Optional
--dry-run Do not send purge requestsOptional
--sleep-per-batch Milliseconds to sleep between batchesOptional
--verbose Show more outputOptional

Usage

php maintenance/run.php purgeChangedFiles --starttime dt1 --endtime dt2 [ --type| --htcp-dest| --dry-run| --sleep-per-batch| --verbose ]
In MediaWiki version 1.39.12 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

Purging

Terminal

See also

Category:Maintenance scripts Category:File maintenance scripts
Category:File maintenance scripts Category:Maintenance scripts Category:MediaWiki code