Cache Flag adds a new {% cacheflag %} Twig tag to Craft CMS, which works just like the native {% cache %} tag, except that it will not save element queries for automatic cache breaking.

Instead of element queries, Cache Flag enables you to add flags (i.e. keywords) to your content (e.g. per Section, Category Group, Asset Volume, Element Type etc) and the {% cacheflag %} tags in your templates.

When an element is saved, deleted or moved, Cache Flag will automatically clear any caches with flags related to that element.

This plugin will be free forever


Package Name

To install this plugin, search for its package name on the Plugin Store and click “Install”.


  • Version 1.0.3
  • Last Update 10/2/2018
  • Active Installs 281
  • Compatibility Craft 3
  • License MIT
  • Categories Performance

Report an issue