What the plugin does is simply define DONOTCACHEPAGE which informs the cache plugins to not cache this page. Rocket seems to honor this :
http://docs.wp-rocket.me/article/99-pages-are-not-cached-or-css-and-js-minification-are-not-working
So just enable the setting and try if it works.
Thread Starter
andreu
(@andreu)
Ok, thanks for the clarification. I use your plugin for language redirection with template_redirect and with the cache enabled the redirection didn’t take effect. I had to disable the homepage cache entirely in order to make it work. Theoretically it should work only enabling the option in your plugin. Isn’t it? I’ll give it another try.
Thread Starter
andreu
(@andreu)
Hi!
I contacted WP Rocket support and they told me that since the detection is done during the PHP processing, once the cache is generated, this detection will not be done anymore until the cache file is cleared and a new cache is generated.
Do you think I can make a call to your detection function via AJAX in an easy way?
Thanks!
Oh, so you don’t use the geoip call every time when visiting a specific page? In this case yes, disabling the cache or AJAX are the only options.
The AJAX API is still under development, though …