WP Rocket Cache
-
I’m using GDPR Cookie Compliance Plugin along with WP Rocket Cache. Two of my favourite and most useful plugins.
I need to show different content according to the cookies choices (i.e.: show YouTube videos if third-party cookies are accepted or a picture with warning if they are not).
So I used the native PHP hooks:
if ( gdpr_cookie_is_accepted( 'thirdparty' ) ) { ... } else { ... }
and then force page reload:
add_action( 'gdpr_force_reload', '__return_true' )Unfortunately it doen’t work if caching is enabled.
I wonder if there’s a way to load uncached page, for example by adding a specific query string to the url before reloading and using that query string as exception in cache settings.Any suggestion to make the plugins work together will be highly appreciated.
The topic ‘WP Rocket Cache’ is closed to new replies.