Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/codebeef/jekyll-cloudflare-cache-purge
- Owner: Codebeef
- License: mit
- Created: 2022-11-13T18:41:54.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-26T18:07:43.000Z (10 months ago)
- Last Synced: 2024-09-29T03:04:17.495Z (3 months ago)
- Topics: cloudflare, cloudflare-cache-purger, jekyll, jekyll-plugin
- Language: Ruby
- Homepage: https://codebeef.com/jekyll-cloudflare-cache-purge
- Size: 29.3 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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`