{"id":20564863,"url":"https://github.com/harugon/mediawiki-extensions-cloudflare","last_synced_at":"2025-07-18T17:03:04.699Z","repository":{"id":45090470,"uuid":"443112673","full_name":"harugon/mediawiki-extensions-cloudflare","owner":"harugon","description":"MediaWikiの編集時にCloudflareのキャッシュをパージする","archived":false,"fork":false,"pushed_at":"2024-11-04T11:31:55.000Z","size":52,"stargazers_count":1,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-14T15:13:38.637Z","etag":null,"topics":["cloudflare","mediawiki","mediawiki-extension"],"latest_commit_sha":null,"homepage":"https://www.mediawiki.org/wiki/Extension:Cloudflare","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/harugon.png","metadata":{"files":{"readme":"README.en.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-12-30T15:26:04.000Z","updated_at":"2024-11-04T11:32:00.000Z","dependencies_parsed_at":"2022-09-03T00:21:51.989Z","dependency_job_id":"5b445597-bf04-44e6-9479-f5f1a6841236","html_url":"https://github.com/harugon/mediawiki-extensions-cloudflare","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/harugon/mediawiki-extensions-cloudflare","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harugon%2Fmediawiki-extensions-cloudflare","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harugon%2Fmediawiki-extensions-cloudflare/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harugon%2Fmediawiki-extensions-cloudflare/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harugon%2Fmediawiki-extensions-cloudflare/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/harugon","download_url":"https://codeload.github.com/harugon/mediawiki-extensions-cloudflare/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harugon%2Fmediawiki-extensions-cloudflare/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265797755,"owners_count":23829828,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cloudflare","mediawiki","mediawiki-extension"],"created_at":"2024-11-16T04:29:17.314Z","updated_at":"2025-07-18T17:03:04.661Z","avatar_url":"https://github.com/harugon.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cloudflare® - MediaWiki\n\nThis extension purges Cloudflare cache when updating pages or re-uploading images, with the primary aim of clearing image cache.\n\nIt's recommended to read the page [Using CloudFlare with MediaWiki – harugon's blog](https://blog.r9g.net/archives/121) before installation.\n\n## Requirements\n- PHP 7.4\n- MediaWiki 1.35\n\n## Install\n\nDownload the file `Cloudflare-{version}.tar.gz` from the URL [Releases · harugon/mediawiki-extensions-cloudflare](https://github.com/harugon/mediawiki-extensions-cloudflare/releases) and extract it to the extensions directory.\n\nAdd the following to LocalSettings.php along with your Cloudflare API information:\n\n```php\nwfLoadExtension('Cloudflare');\n$wgCloudflareEmail = '';\n$wgCloudflareAPIKey = '';\n$wgCloudflareZoneID = '';\n```\n\n## Config\n\n| Variable                 | Default value | Notes                                                                                                                   |\n| ------------------------ | ------------- | ----------------------------------------------------------------------------------------------------------------------- |\n| `$wgCloudflareEmail`     | `\"\"`          | Your email used for logging in Cloudflare                                                                               |\n| `$wgCloudflareAPIKey`    | `\"\"`          | API key ([API token - Cloudflare](https://dash.cloudflare.com/profile/api-tokens) \u0026rarr; Your global API key is needed) |\n| `$wgCloudflareZoneID`    | `\"\"`          | Site (URL) ID (You can get it from the dashboard of the site)                                                           |\n| `$wgCloudflarePurgePage` | `false`       | Purge cache when articles are updated                                                                                   |\n| `$wgCloudflarePurgeFile` | `true`        | Purge cache when files (images) are updated                                                                             |\n|\n\n### Caching Article Pages\n\nIf enabling `$wgCloudflarePurgePage`, it's necessary to set a Page Rule of Bypass Cache on Cookie. (Only available on Business and Enterprise plans.)\n\n## Issues\n\n- API Rate limits\n- When Varnish is in place... (There's a possibility that Cloudflare may disappear first in the sequence Cloudflare-\u003eVarnish-\u003eorigin?)\n\n## Disclaimer\n\nCloudflare, the Cloudflare logo, and Cloudflare Workers are trademarks and/or registered trademarks of Cloudflare, Inc. in the United States and other jurisdictions.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharugon%2Fmediawiki-extensions-cloudflare","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fharugon%2Fmediawiki-extensions-cloudflare","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharugon%2Fmediawiki-extensions-cloudflare/lists"}