Extension:MultiPurge

MediaWiki extensions manual
OOjs UI icon advanced-invert.svg
MultiPurge
Release status: stable
Implementation Page action , Special page
Description Allows purging of pages for multiple services in a defined order.
Latest version 1.0.0 (05.08.2022)
MediaWiki 1.35+
License GNU General Public License 2.0 or later
Download

The MultiPurge extension allows the purging of pages from multiple caches in a defined order. It was developed to allow the use-case of first purging data from a varnish cache, and then from CloudFlare.

Special PageEdit

MultiPurge adds a special page for sysops which allows purging of load.php urls.

The page can be found at Special:PurgeResources.

Only users with editinterface permissions can access this page.

The page works by requesting the actual html output of a given title, and parsing all load.php calls.

All found links can then be selected to be purged.

Configuration OptionsEdit

Variable Default Value Description
$wgMultiPurgeCloudFlareZoneId null String - Zone ID the Wiki Domain is contained in
$wgMultiPurgeCloudFlareApiToken null String - API Token found in your dashboard
$wgMultiPurgeVarnishServers null String/Array - Array of URLs pointing to your Varnish Servers. Can be IPs
$wgMultiPurgeEnabledServices null Array - List of enabled services. Possible values are 'Cloudflare', 'Varnish'
$wgMultiPurgeServiceOrder null Array - List of service purge order. Possible values are 'Cloudflare', 'Varnish'. Example: ['Varnish', 'Cloudflare'] purges varnish, then cloudflare