All add-ons currently require PHP 7.4 or greater.

On July 4th 2024 PHP 8.2 will be the new minimum requirement for all add-ons. Expect any add-on released after that date to require 8.2 or greater. Some releases may not immediately take advantage of 8.x specific features in PHP, which means you might, be able to continue using new releases in PHP 7.4, however, if you experience an error the first thing you should do is update to PHP 8.2 then create a support ticket if the error persists.

Please read about the changes to BoldMinded add-on licensing.

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