Invalidation and maintenance

mamba_purge_tags
Instructs external/CDN integrations to purge by tags.

Payload: array of tag strings (e.g., ['product_123', 'category_9', 'store_api_catalog'])

add_action('mamba_purge_tags', function(array $tags) {
    // Purge these tags at your CDN
});

mamba_purge_urls
Instructs external/CDN integrations to purge specific URLs.

Payload: array of URLs (e.g., ['https://example.com/shop/'])

add_action('mamba_purge_urls', function(array $urls) {
    // Purge these URLs at your CDN
});

mamba_cache_purged
Broadcasts that a full cache clear has completed (local HTML/meta).

Payload: none

add_action('mamba_cache_purged', function () {
    // Notify other systems; reset local state, etc.
});

mamba_purge_all
Companion signal for global purge integrations (e.g., instruct CDN to purge everything).

Payload: none

add_action('mamba_purge_all', function () {
    // Global purge integration (e.g., CDN-wide purge-all)
});

Copyright 2025 - Mamba


Mamba mascot