Extension:Cloudflare

MediaWiki extensions manual
Cloudflare
Release status: beta
Implementation other (invalid type)
Description Purge Cache for CloudFlare.
Author(s) (Harugon1talk)
Latest version 0.1.3
MediaWiki >= 1.35
PHP 7.4+
Database changes No
Composer harugon/cloudflare
License MIT License
Download
README
  • $wgCloudflareEmail
  • $wgCloudflareAPIKey
  • $wgCloudflareZoneID
  • $wgCloudflarePurgePage
  • $wgCloudflarePurgeFile

The Cloudflare extension can automatically purge Cloudflare cached URLs(Thumbnail).

InstallationEdit

  • Download and place the file(s) in a directory called Cloudflare in your extensions/ folder.
  • Only when installing from Git, run Composer to install PHP dependencies, by issuing composer install --no-dev in the extension directory. (See task T173141 for potential complications.)
  • Add the following code at the bottom of your LocalSettings.php :
    wfLoadExtension( 'Cloudflare' );
    $wgCloudflareEmail = '';
    $wgCloudflareAPIKey = '';
    $wgCloudflareZoneID = '';
    
  •   Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Configuration parametersEdit

$wgCloudflareEmail
Email address of your Cloudflare account.
$wgCloudflareAPIKey
Cloudflare API Key (APIkey( API Token - Cloudflare → Global API Key)).
$wgCloudflareZoneID
Cloudflare Zone ID (available in the Overview dashboard).
$wgCloudflarePurgePage
false
$wgCloudflarePurgeFile
true

See alsoEdit