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

Details

purgeChangedPages.php file is a maintenance script to send purge requests for pages edited in a date range to squid/varnish. This script can be used to recover from an HTCP message partition or other major cache layer interruption. It processes 100 items in a batch.

Options/Arguments

Option Description Required?
--starttime Starting timestampRequired
--endtime Ending timestampRequired
--htcp-dest HTCP announcement destination (IP:port)Optional
--sleep-per-batch Milliseconds to sleep between batchesOptional
--dry-run Do not send purge requestsOptional
--verbose Show more outputOptional

Usage

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


Terminal
$ php maintenance/purgeChangedPages.php --starttime 20210101 --endtime 20220115

Processing changes from 20210101 to 20220115.
Done!

See also

  • Manual:Varnish caching
  • Manual:Squid caching
  • Manual:PurgeChangedFiles.php
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.