• 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’ );
    };

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author adeelkhan

    (@adeelkhan)

    First of all thanks for using Breeze it would be great to share your experience with Breeze. Actually right now there is no filter hook provided by Breeze as you discussed but in future you will get it.

    Right now you may exclude the entire URL from the option “Never Cache URL”. Please specify URLs of Pages or posts that should never be cached.

    Thread Starter jumpinsteph

    (@jumpinsteph)

    Hi, Thanks.

    But my problem is that it seems to have a conflict with the plugin for privacy I’m using.
    I have this warning when clicking on accept button or saving the privacy settings:

    Warning: Undefined array key “uncode_gdpr_session_497fc519039041853c49a17ba4450f29” in /home/httpd/vhosts/…./wp-content/plugins/uncode-privacy/includes/uncode-toolkit-privacy-logs-functions.php on line 98

    Warning: Cannot modify header information – headers already sent by (output started at /home/httpd/vhosts/…/wp-content/plugins/uncode-privacy/includes/uncode-toolkit-privacy-logs-functions.php:98) in /home/httpd/vhosts/…/wp-includes/pluggable.php on line 1435

    Warning: Cannot modify header information – headers already sent by (output started at /home/httpd/vhosts/…/wp-content/plugins/uncode-privacy/includes/uncode-toolkit-privacy-logs-functions.php:98) in /home/httpd/vhosts/…/wp-includes/pluggable.php on line 1438

    So I was thinking to try the add filter code maybe to avoid that.
    When I deactivate the cache plugin, I have no more warning…
    Do you have an idea ?

    Plugin Author adeelkhan

    (@adeelkhan)

    First of all sorry for the inconvenience. We are here to assist our users but for that we need investigate , it would be great if you contact our support and create ticket . We will investigate the point of conflict and also share to our users.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Filter caching file’ is closed to new replies.