Add script to purge changed pages from cache
authorBryan Davis <bd808@wikimedia.org>
Tue, 1 Oct 2013 17:29:56 +0000 (11:29 -0600)
committerBryan Davis <bd808@wikimedia.org>
Mon, 7 Oct 2013 23:50:20 +0000 (17:50 -0600)
commit7cee9fd38dbc7c2f33540ec55755c8d8c2155fac
tree19b2f4d23936ce16a5599ff6f356a8090433ba6f
parent891fecfa0e81ef4eab5ac5da9231a4315cec851c
Add script to purge changed pages from cache

This maintenance script could be used to recover from large HTCP
listener outages and/or network partitions. It searches the database for
pages having revisions occurring within a specified time period,
converts them to full URLs and sends squid/varnish purge messages using
SquidUpdate. A command line option allows specifying a specific
IP:port combination for HTCP purge datagrams which can be used to
isolate the purge announcement to a particular varnish server or data
center.

Co-Authored by: Aaron Schulz <aschulz@wikimedia.org>
Bug: 54647
Change-Id: Id0e95290e83333545e6bb0378cc620c35c653bf9
maintenance/purgeChangedPages.php [new file with mode: 0644]