https://github.com/codebeef/jekyll-cloudflare-cache-purge
Jekyll plugin to trigger a cache purge on Cloudflare when the site is built
https://github.com/codebeef/jekyll-cloudflare-cache-purge
cloudflare cloudflare-cache-purger jekyll jekyll-plugin
Last synced: 4 months ago
JSON representation
Jekyll plugin to trigger a cache purge on Cloudflare when the site is built
- Host: GitHub
- URL: https://github.com/codebeef/jekyll-cloudflare-cache-purge
- Owner: Codebeef
- License: mit
- Created: 2022-11-13T18:41:54.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-30T23:14:35.000Z (over 1 year ago)
- Last Synced: 2025-02-01T17:23:43.020Z (about 1 year ago)
- Topics: cloudflare, cloudflare-cache-purger, jekyll, jekyll-plugin
- Language: Ruby
- Homepage: https://codebeef.com/jekyll-cloudflare-cache-purge
- Size: 31.3 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jekyll-cloudflare-cache-purge
[](https://badge.fury.io/rb/jekyll-cloudflare-cache-purge)
[](https://github.com/Codebeef/jekyll-cloudflare-cache-purge/actions/workflows/rspec.yml)
Sends a request to cloudflare once jekyll has finished building your sire to
clear the cache there.
## Usage
Add the following to your site's `Gemfile`
```
gem 'jekyll-cloudflare-cache-purge'
```
Define two env vars on the system that builds and hosts your blog:
```
CLOUDFLARE_ZONE=""
CLOUDFLARE_API_TOKEN=""
```
Once your blog has built, you should see a line appear in the build output that
reads `Cloudflare Cache: Purged`