Jump to content

Extension:CloudflarePurge

From mediawiki.org
MediaWiki extensions manual
CloudflarePurge
Release status: stable
Description Purge the Cloudflare cache of edited and deleted pages
Author(s) Sophivorustalk
Latest version 1.0
MediaWiki >= 1.39.0
PHP 7.4+
License GNU General Public License 3.0 or later
Download
  • $wgCloudflarePurgeAuthEmail
  • $wgCloudflarePurgeAuthKey
  • $wgCloudflarePurgeZoneID
Quarterly downloads 4 (Ranked 130th)
Translate the CloudflarePurge extension if it is available at translatewiki.net

The CloudflarePurge extension automatically purges the Cloudflare cache of edited and deleted pages.

Installation

  • Download and move the extracted CloudflarePurge folder to your extensions/ directory.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/CloudflarePurge
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'CloudflarePurge' );
    $wgCloudflarePurgeAuthEmail = '';
    $wgCloudflarePurgeAuthKey = '';
    $wgCloudflarePurgeZoneID = '';
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Configuration parameters

// Email address of your Cloudflare account
$wgCloudflarePurgeAuthEmail = '';

// Cloudflare Global API Key, see https://dash.cloudflare.com/profile/api-tokens
$wgCloudflarePurgeAuthKey = '';

// Cloudflare Zone ID, see your Cloudflare Overview dashboard
$wgCloudflarePurgeZoneID = '';

See also