Viewing 8 replies - 1 through 8 (of 8 total)
  • It seems to work fine for me in combination with Salient Theme.

    In W3TC I use Page Cache and Browser Cache only.

    It seems the plugin is not working propably with any caching solution.

    If the site gets cached for the first time by a user with the consent already given, the cached page won’t have the plugin in it. So the next time a user without the consent given opens the site, he won’t get the message.

    Is there a way to have the plugin always included in your site, so it will be cached no matter what?

    i can give you the cornerstones of my settings. I hope it helps or at least it is something to work with!

    I use this configuration of w3tc: https://marketingheld.com/w3-total-cache/ – it is written in german but maybe the screenshots help to copy the settings.
    For minifiy .css and .js i use the autopotimize standard settings.

    My Cookie Notice Settings:
    Refuse & Revoke cookies – enabled
    Pasted my Matomo Code into the “Sript Blocking” Field (“Body”)
    “Enable to reload the page after cookies are accepted.” – enabled

    In my case i can use “Cookie Notice” without Problems – tested with different Browsers on different devices. I can also activate and deactivate the Matomo script using the “Revoke Cookies” Button.

    Thread Starter joedev91

    (@joedev91)

    @rocketworks same case.

    I’m going to check your cornerstones.

    @faircams I guess you are not using a page cache, like W3C?

    If you do, try clearing the cache and reopen the site with an browser that has the accepted cookie already set. Now, open the site in a browser without the cookies set (or clear the cookies). You won’t get the cookie banner, because the page got cached without the cookie banner part.

    This issue also raised (with answer) here on DFactory forum.

    Apparently Cookie Notice will work correctly with WP Rocket Cache.

    Comet or WP Super Cache will also work correctly with Cookie Notice if you install the appropriate Caching Extension from the WordPress plugin directory: (for WPSC) (for Comet Cache).

    Note: Although these caching extensions are labeled “Country Caching” (I originally created them to enable Comet/WPSC to work with geolocation) they will “fix” Cookie Notice even if you are not using country geolocation.

    @rocketworks as i wrote before, i am using w3tc (W3 Total Cache). The feature “Page cache” is enabled (Disc: enhanced). It seems to work: There is the message “Page Caching using disk: enhanced” in the bottom of the html source, the files in wp-content-cache-page_enhanced are there, too so it should work. I tried your workaround and had no caching problems like you described.

    @wrigs1 thank you for the hint. Maybe WP Rocket Cache is an alternative. I think it is possible i get problems like rocketworks when i use other configuration settings.

    Hey guys,

    with comet cache you can use “Dynamic Version Salt”. Just goto the Settings page > Dynamic Version Salt and insert $_COOKIE[“cookie_notice_accepted”] as a parameter.

    It will create a cached copy of your site *with* the html cookie output and a cached copy of your site without. since the checking of the cookie seems to be with js the hint will always be displayed.

    (edit notice: quotes in this post are being transformed, please replace them with actual quotes, don’t just copy it.)

    • This reply was modified 6 years, 3 months ago by julojulo.
    • This reply was modified 6 years, 3 months ago by julojulo.
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Compatible with W3 Total Cache’ is closed to new replies.