New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

visuellverstehen/statamic-advanced-invalidator

A Statamic invalidation class for static caching with advanced capabilities.
1,223
Install
composer require visuellverstehen/statamic-advanced-invalidator
Latest Version:v2.0.0
Laravel:12 · 13
Older releases:10 · 11
License:MIT
Last Updated:Nov 3, 2026
Links: GitHub  ·  Packagist
Maintainer: visuellverstehen

Statamic Advanced Invalidator

A Statamic invalidation class for static caching with advanced capabilities. It allows invalidating named routes, cache keys and CacheTracker tags when the static cache for content items is cleared.

How to Install

Simply run the following command from your project root:

composer require visuellverstehen/statamic-advanced-invalidator

How to Use

In your static_caching.php file add AdvancedInvalidator for the class key in the invalidation section. That allows you to add additional invalidation rules:

use VV\AdvancedInvalidator\AdvancedInvalidator;

// …

'invalidation' => [
    'class' => AdvancedInvalidator::class,
    
    'rules' => [
        'collections' => [
            'pages' => [
                'urls' => [
                    // urls to invalidate
                ],
                'named_routes' => [
                    // route names
                    // routes will be resolved and merged with urls above
                    'user.login',
                ],
                'keys' => [
                    // cache key names
                    'my-cache-key',
                ],
                'tags' => [
                    // when using the CacheTracker package you can add
                    // tags that should be invalidated
                    'partial:sitemap',
                ],
            ],
        ],
    ]
]

More about us

License

The MIT license (MIT). Please take a look at the license file for more information.

Related Packages

fdmind/ignore-query-strings

If your website has static caching on, and you drive traffic to it from social m...

5,981 5
aerni/fathom

Easily navigate to your shared Fathom site from Statamic's control panel

5,885 3
danielgnh/statamic-mcp

MCP server for Statamic that lets AI clients manage entries, terms, globals, and...

5,028 6
mikomagni/statamic-environment

Statamic Environment Indicator and Dashboard Widget for Statamic 6

3,067 2

Version History

Version Released Laravel License
v2.0.0 ^12.0 || ^13.0 MIT
v1.1.1 ^11.0 || ^12.0 MIT
v1.1.0 ^11.0 || ^12.0 MIT
v1.0.2 ^10.0 || ^11.0 MIT
v1.0.1 ^10.0 || ^11.0 MIT