harugon/cloudflare

MediaWikiの編集時にCloudflareのキャッシュをパージする


Keywords
cloudflare, mediawiki, mediawiki-extension
License
MIT

Documentation

Cloudflare® - MediaWiki

MediaWikiの投稿、更新時にCloudflareのキャッシュをパージします

Install

Releases · harugon/mediawiki-extensions-cloudflare

上記のURLよりCloudflare-{バーション}.tar.gzのファイルをダウンロードしextensionsに展開

LocalSettings.phpに CloudflareのAPI情報とともに追記します。

wfLoadExtension('Cloudflare');
$wgCloudflareEmail = '';
$wgCloudflareAPIKey = '';
$wgCloudflareZoneID = '';

Config

変数 説明
$wgCloudflareEmail Cloudflareに登録してあるメールアドレス
$wgCloudflareAPIKey APIkey( API トークン- Cloudflare → Global API Key が必要です )
$wgCloudflareZoneID サイト(URL)固有のID (サイトごとのダッシュボードで見ることができます)

Cloudflare, the Cloudflare logo, and Cloudflare Workers are trademarks and/or registered trademarks of Cloudflare, Inc. in the United States and other jurisdictions.