Cache Flag Flag and clear template caches without element queries

Developed by Mats Mikkel Rummelhoff


Cache Tag adds the {% cacheflag %} tag to Twig, which – like P&T's Cold Cache plugin – _doesn't create element queries_ for automatic cache breaking. Instead, Cache Flag gives you granular control over when a particular cache should be cleared, by adding _flags_ to content and caches.

Plugin Development 101

Level up in Craft CMS with practical examples, snippets, and patterns.
Craft The Planet emails are sent out several times a week.