Support Forum › Support Forum › GDPR Cookie Compliance › The Hook does not work except if we disable plugin cache
- AuthorPosts
- Premium
February 06, 2025 @ 11:45 amIn the plugin FAQ here :
In the question item : “Can I use custom code or hooks with your plugin?”, you link to :
https://wordpress.org/support/topic/conditional-php-script/I tried the hooks and they don’t work except if we disable the plugin cache like this :
add_filter(‘gdpr_cookie_script_cache’, function () {
return [];
});If not the hooks never play.
Please check if it’s a bug or add this information in the wordpress support topic (topic is closed, I can not reply there)
Thanks
Moove AgencyFebruary 12, 2025 @ 10:24 amHi Erwan
Thanks for reporting this.
We will look into it and provide an update soon.
Hope this helps.
Moove AgencyMarch 21, 2025 @ 12:22 pmHi Erwan
This is true, we’re using a script cache.
If you try to add scripts via hook, the cache should be disabled as you seem to have done correctly on your side.Hope this helps.
AuthorPostsViewing 3 posts - 1 through 3 (of 3 total)The topic ‘The Hook does not work except if we disable plugin cache’ is closed to new replies.