Closed robdekort closed 4 months ago
Currently you can do the following in static caching invalidation rules:
return [ 'invalidation' => [ 'class' => null, 'rules' => 'all' ] ];
or
return [ 'invalidation' => [ 'class' => null, 'rules' => [ 'collections' => [ 'blog' => [ 'urls' => [ '/blog', '/blog/category/*', '/', ] ], ], 'taxonomies' => [ 'tags' => [ 'urls' => [ '/blog', '/blog/category/*', '/', ] ] ], 'globals' => [ 'settings' => [ 'urls' => [ '/*' ] ] ], 'navigation' => [ 'links' => [ 'urls' => [ '/*' ] ] ] ] ] ];
Since you can expand on collections, taxonomies, globals and navigation on a later date, it would be helpful if you can set those items to all individually so the rules will keep on working for those items. Like this:
all
'invalidation' => [ 'class' => null, 'rules' => [ 'collections' => [ 'blog' => [ 'urls' => [ '/blog', '/blog/category/*', '/', ] ], ], 'globals' => 'all', 'navigation' => 'all', 'taxonomies' => 'all' ] ],
https://github.com/statamic/ideas/issues/860 🙂
Well well well, look at that!
Of course you did 😃
Going to close this issue in favour of that one. (sorry rob 😃 )
All good, haha.
Assuming it'll get merged now ;-)
Currently you can do the following in static caching invalidation rules:
or
Since you can expand on collections, taxonomies, globals and navigation on a later date, it would be helpful if you can set those items to
all
individually so the rules will keep on working for those items. Like this: