Extension:MultiPurge
Appearance
Stav rozšíření: stabilní |
|
|---|---|
| Implementace | Akce stránky, Speciální stránka |
| Popis | Umožňuje čištění stránek pro více služeb v definovaném pořadí. |
| Autoři | Octfxdiskuse |
| Nejnovější verze | 1.1.1 (2023-01-29) |
| MediaWiki | 1.39+ |
| PHP | >=8.0 |
| Composer | octfx/multipurge |
| Licence | GNU General Public License 2.0 nebo novější |
| Stáhnout | GitHub: Poznámka: |
|
|
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 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.
Installation
- Download soubor/y a vložte je do adresáře pojmenovaného
MultiPurgeve vaší složceextensions/. - Na konec vašeho souboru LocalSettings.php přidejte následující kód:
wfLoadExtension( 'MultiPurge' );
- Configure as required.
Dokončeno – Přejděte na stránku Special:Version vaší wiki a zkontrolujte, zda bylo rozšíření úspěšně nainstalováno.
Configuration
Usage and configuration information can be found in the README.md file in the extension's repository.
| Variable | Default Value | Type | 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 |
$wgMultiPurgeStaticPurges |
null |
String/Array | Array of URLs that can be purged using the special page. The key is displayed as the selection label. Example: ['Startup script' => 'load.php?lang=en&modules=startup&only=scripts&raw=1&skin=citizen', 'Site styles' => 'load.php?lang=en&modules=site.styles&only=styles&skin=citizen'].
|
$wgMultiPurgeRunInQueue |
false |
String | Push purge jobs to the job queue instead of running them in sync. |
See also
- Extension:CloudflarePurge – Similar extension that can only purge Cloudflare
- Extension:Cloudflare – Similar extension that can only purge Cloudflare, but also purges files
