Skip to main content

register_invalidator

Function register_invalidator 

Source
pub fn register_invalidator(
    tenant_slug: impl Into<String>,
    invalidator: Arc<dyn PageCacheInvalidator>,
)
Expand description

Stash a tenant’s cache invalidator so a deserialized CachePurgeJob can resolve it in run(). Idempotent. Called automatically by purge_urls from the in-hand invalidator, so hosts don’t normally call it.