Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: 3 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# jekyll-cloudflare-cache-purge

[![Gem Version](https://badge.fury.io/rb/jekyll-cloudflare-cache-purge.svg)](https://badge.fury.io/rb/jekyll-cloudflare-cache-purge)
[![RSpec](https://github.com/Codebeef/jekyll-cloudflare-cache-purge/actions/workflows/rspec.yml/badge.svg)](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`