MediaWiki version:
1.22
MediaWiki file: purgeChangedFiles.php
Location: maintenance/
Source code: master 1.40.0 1.39.4 1.35.11
Classes: PurgeChangedFiles

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

OptionDescriptionRequired?
--starttimeStarting timestampRequired
--endtimeEnding timestampRequired
--typeComma-separated list of types of changes to send purges for (created,deleted,modified,all)Optional
--htcp-destHTCP announcement destination (IP:port)Optional
--dry-runDo not send purge requestsOptional
--sleep-per-batchMilliseconds to sleep between batchesOptional
--verboseShow more outputOptional

Usage

php maintenance/purgeChangedFiles.php --starttime dt1 --endtime dt2 [ --type| --htcp-dest| --dry-run| --sleep-per-batch| --verbose ]

Dry run to check purging

Terminal
$ php maintenance/purgeChangedFiles.php --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/purgeChangedFiles.php --starttime 20210101 --endtime 20211231

See also

  • Manual:Purge
  • Manual:File cache
  • Manual:PurgeChangedPages.php
  • Manual:PruneFileCache.php
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.