This module integrates with the Cloudflare API service. Gives an admin user the ability to clear cache on a per node basis or can purge for the whole site (zone).

Features

  • Clear cache per node url. Action button added to node edit form.
  • Clear all cache for site/configured zone.
  • Works with both API key & token. Configure one of the two for usage.
  • Can configure multiple zones per language/domain.

Required

  • Cloudflare SDK (will be installed via Composer).
  • Cloudflare API Account (Email, API Key or Token & Zone Id is required).

Install/Usage

Install via Composer to get all dependencies:
composer require drupal/cloudflare_node_cc

  1. Install and enable module like any other contributed module.
  2. Configure Cloudflare API settings at /admin/config/cloudflare-node-cache-clear
  3. If purging a single node cache, please visit the edit page of the node and purge via action button.
  4. If purging whole site wide cache, go through admin toolbar tools menu item "Purge Cloudflare Cache" or via: /admin/cloudflare-node-cache-clear/purge-cache

Project information

Releases