Extension:MultiPurge/cs

Category:GPL licensed extensions/cs
Příručka k rozšířením MediaWiki
MultiPurge
Stav rozšíření: stabilníCategory:Stable extensions/cs
Implementace Akce stránky Category:Page action extensions/cs, Speciální stránka Category:Special page extensions/cs
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+Category:Extensions with manual MediaWiki version
PHP >=8.0
Composer octfx/multipurgeCategory:Extensions supporting Composer/cs
Licence GNU General Public License 2.0 nebo novější
Stáhnout Category:Extensions in GitHub version control/cs
  • $wgMultiPurgeCloudFlareZoneId
  • $wgMultiPurgeServiceOrder
  • $wgMultiPurgeVarnishServers
  • $wgMultiPurgeEnabledServices
  • $wgMultiPurgeCloudFlareApiToken
  • $wgMultiPurgeStaticPurges
  • $wgMultiPurgeRunInQueue
Category:All extensions/cs

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 MultiPurge ve vaší složce extensions/.
  • Na konec vašeho souboru LocalSettings.php přidejte následující kód:
    wfLoadExtension( 'MultiPurge' );
    
  • Configure as required.
  • Yes 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
$wgMultiPurgeCloudFlareZoneIdnullString Zone ID the Wiki Domain is contained in
$wgMultiPurgeCloudFlareApiTokennullString API Token found in your dashboard
$wgMultiPurgeVarnishServersnullString/Array Array of URLs pointing to your Varnish Servers. Can be IPs
$wgMultiPurgeEnabledServicesnullArray List of enabled services. Possible values are 'Cloudflare', 'Varnish'
$wgMultiPurgeServiceOrdernullArray List of service purge order. Possible values are 'Cloudflare', 'Varnish'. Example: ['Varnish', 'Cloudflare'] purges varnish, then cloudflare
$wgMultiPurgeStaticPurgesnullString/Array Array of urls that can be purged using the special page. 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'].
$wgMultiPurgeRunInQueuefalseString Push purge jobs to the job queue instead of running it in sync.
Category:All extensions/cs Category:ArticlePurge extensions/cs Category:Extensions in GitHub version control/cs Category:Extensions supporting Composer/cs Category:Extensions with manual MediaWiki version Category:GPL licensed extensions/cs Category:LocalFilePurgeThumbnails extensions/cs Category:Page action extensions/cs Category:Special page extensions/cs Category:Stable extensions/cs