Manual:PurgeChangedPages.php
Versão MediaWiki: | ≥ 1.22 |
Arquivo MediaWiki: purgeChangedPages.php | |
---|---|
Local: | maintenance/ |
Código fonte: | master • 1.43.0 • 1.42.4 • 1.39.11 |
Classes: | PurgeChangedPages |
Detalhes
O arquivo purgeChangedPages.php é um script de manutenção que envia pedidos de purgação para páginas editadas em um intervalo de datas para 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 timestamp | Required |
--endtime | Ending timestamp | Required |
--htcp-dest | HTCP announcement destination (IP:port) | Optional |
--sleep-per-batch | Milliseconds to sleep between batches | Optional |
--dry-run | Do not send purge requests | Optional |
--verbose | Show more output | Optional |
Usage
php maintenance/run.php purgeChangedPages --starttime dt1 --endtime dt2 [ --htcp-dest| --sleep-per-batch| --dry-run| --verbose ]
Terminal
$ php maintenance/run.php purgeChangedPages --starttime 20210101 --endtime 20220115 Processing changes from 20210101 to 20220115. Done!
In MediaWiki version 1.39.10 and earlier, you must invoke maintenance scripts using
php maintenance/scriptName.php
instead of php maintenance/run.php scriptName
.