Experimental project

This is a sandbox project, which contains experimental code for developer use only.

A simple module to purge everything on a free tier Cloudflare zone.

Module has no dependencies.

Installation

You can include this module by pulling it from the repo and put it under modules/custom/ directory.

git clone --branch 8.x.2.x git@git.drupal.org:sandbox/kburakozdemir-3172067.git
mv kburakozdemir-3172067 purgecloudflarefreetier
cd purgecloudflarefreetier
rm -rf .git/
# upload to modules/custom/ 

Configuration

  1. Enable the module
  2. Visit admin/config/purgecloudflarefreetier/adminsettings
  3. Enter required settings
  4. Click 'Save Configuration'

Admin config form

Logic

This module will purge everything on a free tier Cloudflare zone on the following hooks:

  1. hook_entity_insert
  2. hook_entity_update
  3. hook_entity_delete

Caution

Purging everything in the cache in Cloudflare may not be suitable for your caching strategy. Although single file purging by URL via API is allowed in Cloudflare Free Tier, this requires lots of logic and probably won't be implemented!

Supporting organizations: 

Project information

  • caution Minimally maintained
    Maintainers monitor issues, but fast responses are not guaranteed.
  • caution Maintenance fixes only
    Considered feature-complete by its maintainers.
  • Project categories: Integrations
  • Created by kburakozdemir on , updated