Skip to content

Repository files navigation

jekyll-cloudflare-cache-purge

Gem Version RSpec

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

About

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

Topics

Resources

Stars

5 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages