Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/octfx/mediawiki-extensions-multipurge
Allows purging of pages for multiple cache services in a defined order.
https://github.com/octfx/mediawiki-extensions-multipurge
mediawiki-extension
Last synced: 2 months ago
JSON representation
Allows purging of pages for multiple cache services in a defined order.
- Host: GitHub
- URL: https://github.com/octfx/mediawiki-extensions-multipurge
- Owner: octfx
- License: gpl-2.0
- Created: 2021-11-02T21:16:53.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-07-15T05:57:00.000Z (6 months ago)
- Last Synced: 2024-11-02T07:42:28.721Z (2 months ago)
- Topics: mediawiki-extension
- Language: PHP
- Homepage: https://www.mediawiki.org/wiki/Extension:MultiPurge
- Size: 101 KB
- Stars: 4
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# MediaWiki MultiPurge extension
Allows purging of pages for multiple services in a defined order.
Based on https://phabricator.wikimedia.org/T216225#5335375
```
For a custom CDN purger:Enable $wgUseCDN so that CdnCacheUpdate runs. (Keep these off $wgCdnReboundPurgeDelay, $wgCdnServers, and $wgHTCPRouting).
```## Configuration Options
| 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 |## Special Page
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.