Sucuri cache settings page: tabs for settings or purging all cache, and a form to enter API endpoint, key, and secret.

This project is not covered by Drupal’s security advisory policy.

Easily integrate Sucuri cache clearing into Drupal!

Automatically purge node caches on change.

The Sucuri Cache Clear module provides an easy integration between your Drupal site and the Sucuri Website Firewall. It allows site administrators to purge cached content on the node level directly from Drupal. This module helps keep your content fresh on Sucuri’s caching layers without the need to leave your website, perform manual API calls or let your users wait some time until the cache is automatically invalidated.
Whether you need to clear the cache for a single page or your entire site after updates, this module offers a fast and efficient solution.

Features

  • Configure your Sucuri API credentials directly from Drupal.
  • Clear the entire website cache from Drupal’s admin interface.
  • Clear individual node caches with a simple action.
  • Clear caches for multiple nodes at once
  • Integrates seamlessly with Drupal permissions to restrict who can perform cache clears.
  • Logs all cache clear actions for traceability.
  • Admin Button to clear the full cache of Sucuri

Use cases:

  • After publishing or updating content, clear only the necessary parts of your site from Sucuri’s cache instantly without to wait for a time-based purge
  • Perform a full site cache purge after major site updates or deployments.
  • Empower content managers to clear caches without giving them full API access.

Post-Installation

go to /admin/config/services/sucuri_cache and configure the module.
Define the API Endpoint, API Key and API Secret, which should be used.
Module does the rest, and you don't need to think on it again.

Additional Requirements

  • Drupal 9 or higher.
  • A Sucuri Firewall with API access enabled.

Similar projects

  • Purge, Cloudflare Purge and Acquia Purge etc modules: Handle cache clearing for reverse proxies etc.

    Sucuri Cache Clear is focused specifically on Sucuri WAF integration and does not replace general Drupal caching mechanisms.
  • CDN Cache Purger: A general-purpose CDN cache clearing tool.
    Sucuri Cache Clear is a lightweight, Sucuri-specific alternative with a simpler setup.

    Supporting this Module

    ❤️

    Community Documentation

    TBD

    More Ideas

  • Purge the whole cache via backend action
  • support for bulk operations for views of content
  • let a user with permission submit and purge specific URLs via the Drupal Backend
  • Supporting organizations: 
    Initial development and ongoing support

    Project information

    Releases