jekyll-cloudflare-cache-purge

Jekyll plugin to trigger a cache purge on Cloudflare when the site is built

MIT License

Downloads
1.1K
Stars
2
Committers
2

jekyll-cloudflare-cache-purge

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="<Get this value from your CF dashboard>"
CLOUDFLARE_API_TOKEN="<Create an api key just for purging the cache in CF>"

Once your blog has built, you should see a line appear in the build output that reads Cloudflare Cache: Purged

Package Rankings
Badges
Extracted from project README
Gem Version RSpec
Related Projects