Publisher does not support the Fluid field type. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: Is it possible to clear particular tags through an action hook?

Status Resolved
Add-on / Version Speedy 1.8.0
Severity
EE Version 6.3.5

Patmos Inc

Jan 18, 2023

I see that it is possible to clear the whole cache with the action method _break_cache. But is it also possible to clear particular tags associated with channel Entries? Saw this action _break_entry_cache. Will look at the code and see if I can get it working, but it would be quicker if the bold minded team can tell me directly.

I am trying to get the cache cleared when a user reorders posts using low_reorder addon. They have these extension hook which I was going to use: https://eeharbor.com/low-reorder/documentation/extension_hooks

Thanks for the help. You guys are always so responsive and love the add-ons.

Thanks.

#1

BoldMinded (Brian)

I think you would first need to get the entry_ids based on the tag, and make the request to the ACT url that corresponds to the _break_entry_cache() method, e.g. site.com/?ACT=123&ids=1|2|3|4

#2

Patmos Inc

Cool, from what I can see, if I only have one entry from the channel added, there than that will clear the tag associated in the cache clearing rules. So, for my purposes, the call site.com/?ACT=123&ids=1|2|3|4 would achieve the same thing as site.com/?ACT=123&ids=1 given that the entry_id is in the desired channel.

Am I wrong?

Thanks

#3

BoldMinded (Brian)

That sounds about right.

#4

Patmos Inc

Cool, that gives me a good path forward.

Login to reply