Title: Works with cache plugins?
Last modified: April 5, 2018

---

# Works with cache plugins?

 *  Resolved [ArcticFritid](https://wordpress.org/support/users/metuza/)
 * (@metuza)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/works-with-cache-plugins/)
 * Hello,
 * Does this plugin work with cached websites?
 * Thanks
 * Brgds
    Rune

Viewing 11 replies - 1 through 11 (of 11 total)

 *  Plugin Author [Fernando Claussen](https://wordpress.org/support/users/fclaussen/)
 * (@fclaussen)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/works-with-cache-plugins/#post-10150892)
 * Hi Metuza.
 * Thank you for your interest on our plugin.
 * I don’t see why it would not work with cached websites.
 * Let me know if something doesn’t work as expected so I can further investigate.
 *  [darkmoonxarx](https://wordpress.org/support/users/darkmoonxarx/)
 * (@darkmoonxarx)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/works-with-cache-plugins/#post-10170856)
 * WP Fastest Cache unfortunately caches the site with or without the Google Analytic
   Script Codes served with an if function to the header. This way it can happen
   that people trigger cookies they didn’t give permission to. -.- Or is wp_header
   not the place where I should put the scripts?
 *  Plugin Author [Fernando Claussen](https://wordpress.org/support/users/fclaussen/)
 * (@fclaussen)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/works-with-cache-plugins/#post-10171129)
 * Thank you for testing this out.
 * I need to think about what the solution for this would be. I’ll open an issue
   on github.
 * Thank you both
 *  [harpersmith](https://wordpress.org/support/users/harpersmith/)
 * (@harpersmith)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/works-with-cache-plugins/#post-10191899)
 * Hi,
 * Just to let you know that the Consent Banner “sticks” when using WP Super Cache.
 * I have tested it with WP Super Cache deactivated (and cleared cookies both times)
   and it works fine when deactivated.
 * Maybe the “I Agree” button can clear cache and reload the page?
 * Thanks for a great plugin though!
 * Lee
 *  Plugin Author [Fernando Claussen](https://wordpress.org/support/users/fclaussen/)
 * (@fclaussen)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/works-with-cache-plugins/#post-10195074)
 * From what I could see from WP Super Cache, there’s no way around it.
 * [https://wordpress.org/plugins/wp-super-cache/#faq](https://wordpress.org/plugins/wp-super-cache/#faq)
 * Looks like this caching kills any type of dynamic solution that is not javascript
   based.
    That’s why the privacy bar is still showing, or the reconsent takeover
   is still showing even after agreeing to the terms.
 * I still don’t know what our options here are. I will update the issue on GitHub
   and maybe someone can help us over there.
 *  Thread Starter [ArcticFritid](https://wordpress.org/support/users/metuza/)
 * (@metuza)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/works-with-cache-plugins/#post-10195251)
 * I belive that the only way around the use of cache plugins is the use of ajax.
   I have just done a popup login/register plugin for my site and first i got nonce
   problems then i got cookie problems and at the end redirect to my account page
   problems.
 * I had to rebuild the plugin and make it 99% ajax controlled to make sure nonce,
   cookies and other functionality was not cached.
 * Brgds
    Rune
 *  Plugin Author [Fernando Claussen](https://wordpress.org/support/users/fclaussen/)
 * (@fclaussen)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/works-with-cache-plugins/#post-10203807)
 * I proposed a solution for this on GitHub. I tested it with WP Super Cache enabled
   and it seems to be working as expected. Can anyone else test this before I release
   the new version?
 * You can test it by downloading the beta version here: [https://github.com/trewknowledge/GDPR/archive/1.1.4-beta-1.zip](https://github.com/trewknowledge/GDPR/archive/1.1.4-beta-1.zip)
 * Let me know if you find anything that is still not working. That way I can have
   it fixed and launch it on Monday.
 *  Plugin Author [Fernando Claussen](https://wordpress.org/support/users/fclaussen/)
 * (@fclaussen)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/works-with-cache-plugins/#post-10213892)
 * Well… Since there was no feedback on this, I released version 1.1.4 with the 
   additions I did for working with caching plugins. Not 100% sure it works yet 
   but it seems like it.
 * If you still have issues with it, feel free to open a new support ticket.
 *  [dlx](https://wordpress.org/support/users/deeluuxe/)
 * (@deeluuxe)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/works-with-cache-plugins/#post-10219895)
 * There are some caching plugins that can handle separate versions of the pages
   depending on a cookie.
 * E.x.: If there is a cookie that has the content “Y” (user accepted) the caching
   plugin will fetch a version of the page containing the analytics code. Otherwise(
   cookie not set or has the content “N” for declined) the version without the analytics
   code will be delivered.
 * I know two caching that can handle this: Comet Cache & Swift Performance (maybe
   only the Pro versions can).
 *  Plugin Author [Fernando Claussen](https://wordpress.org/support/users/fclaussen/)
 * (@fclaussen)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/works-with-cache-plugins/#post-10222299)
 * That’s good to know.
    But is still a lot to ask from people to know how to configure
   all this.
 * Well… Since the update that might have fixed the caching situation, I haven’t
   heard any more complaints. I’m going to consider that good news 😛
 *  [dlx](https://wordpress.org/support/users/deeluuxe/)
 * (@deeluuxe)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/works-with-cache-plugins/#post-10240329)
 * Hi [@fclaussen](https://wordpress.org/support/users/fclaussen/),
 * I see there is a cookie set when the user clicks on the accept button:
    gdpr%
   5Bprivacy_bar%5D = 1
 * So this solution should work (if the name ‘gdpr%5Bprivacy_bar%5D’ is always the
   same) with Comet Cache Pro depending on a cookie value:
    [https://cometcache.com/kb-article/introduction-to-dynamic-version-salts/](https://cometcache.com/kb-article/introduction-to-dynamic-version-salts/)
 * I´ll try Swift Performance next…

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Works with cache plugins?’ is closed to new replies.

 * ![](https://ps.w.org/gdpr/assets/icon.svg?rev=1837142)
 * [GDPR](https://wordpress.org/plugins/gdpr/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gdpr/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gdpr/)
 * [Active Topics](https://wordpress.org/support/plugin/gdpr/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gdpr/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gdpr/reviews/)

## Tags

 * [caching](https://wordpress.org/support/topic-tag/caching/)

 * 11 replies
 * 5 participants
 * Last reply from: [dlx](https://wordpress.org/support/users/deeluuxe/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/works-with-cache-plugins/#post-10240329)
 * Status: resolved