MediaWiki extensions manual
OOjs UI icon advanced.svg
Release status: beta
Cloudflare Cache status.png
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
  • $wgCloudflareEmail
  • $wgCloudflareAPIKey
  • $wgCloudflareZoneID
  • $wgCloudflarePurgePage
  • $wgCloudflarePurgeFile

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


  • 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

Email address of your Cloudflare account.
Cloudflare API Key (APIkey( API Token - Cloudflare → Global API Key)).
Cloudflare Zone ID (available in the Overview dashboard).

See alsoEdit