visuellverstehen/statamic-advanced-invalidator
| 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 |
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
If your website has static caching on, and you drive traffic to it from social m...
MCP server for Statamic that lets AI clients manage entries, terms, globals, and...
Statamic Environment Indicator and Dashboard Widget for Statamic 6
Version History
| Version | Released | Laravel | License |
|---|---|---|---|
| v2.0.0 | ^12.0 || | MIT | |
| v1.1.1 | ^11.0 || | MIT | |
| v1.1.0 | ^11.0 || | MIT | |
| v1.0.2 | ^10.0 || | MIT | |
| v1.0.1 | ^10.0 || | MIT | |
| v1.0.0 | ^10.0 || |