Filter caching file
-
Hi,
To be GDPR compliant, for example, a page containing a video must vary (be dynamic) depending on whether consent is expressed or not.
With the theme I’m using (Uncode) I can automatically exclude from cache, pages that have a consent dependant element and the consent is active. The page will be not served as cached page and may vary based on user choices. The developpers of the this theme give an example of code to add on the functions.php of the child theme. But the exemple is with another cache plugin. I’m using Breeze for a long time, and still want. So my question is which filter I need to put in the code below, instead of “do_rocket_generate_caching_files” to make it work with Breeze ? Thanks
<?php
add_filter( ‘uncode_checking_consent’, ‘uncode_append_to_consent’, 10, 2 );
function uncode_append_to_consent( $bool, $consent_id ){
add_filter( ‘do_rocket_generate_caching_files’, ‘__return_false’ );
};
- The topic ‘Filter caching file’ is closed to new replies.