Closed benface closed 7 years ago
Hi @benface, thanks for contributing.
It's already possible to clear individual, flagged caches in Cache Flag's CP section. What you're suggesting would basically be the same thing, only more accessible/easier to use. It'd certainly be useful, but unfortunately I can't promise I'll find the time to add something like this anytime soon.
Oh I see what you mean! Do you have to "Save all flags" before you can "Empty caches"?
Not really, but the individual Empty caches button will only be enabled if a) the corresponding flag has in fact been saved, and 2) there are in fact relevant caches to clear for any particular flag.
Thank you, that is more than good enough for me. I don't need this feature anymore, so feel free to close it unless you think it's worth adding. :)
First of all, thank you for the great plugin, it's been very helpful! I have an idea for a new feature if you don't mind.
A use case for this feature would be having something like this in a layout/base template:
Say you want to modify the
<header>
HTML; unfortunately Craft won't automatically purge the cache becauseusing key
is used. From Craft's documentation:It suggests two alternatives, but:
Hence my feature request. I imagine it being a "Clear Caches With Given Flag" button that opens a modal asking which flag(s) should be targeted.
Feel free to say no if you don't think this is a good idea or if it's too much work. Thanks!