Title: WP Rocket cache compatibilty
Last modified: August 31, 2016

---

# WP Rocket cache compatibilty

 *  [andreu](https://wordpress.org/support/users/andreu/)
 * (@andreu)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/wp-rocket-cache-compatibilty/)
 * Hi,
 * Is it possible to add more cache plugins to the compatibility list? Is this a
   thing that could be done by myself?
 * For the moment I can use the plugin enabling GeoIP detection only in homepage
   and disabling some part of the cache in homepage too. But it would be good to
   know exactly how to proceed to make the plugin work fine with WP Rocket cache.
 * Thanks for your work. Your plugin rocks! 🙂
 * [https://wordpress.org/plugins/geoip-detect/](https://wordpress.org/plugins/geoip-detect/)

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

 *  [Benjamin Pick](https://wordpress.org/support/users/benjamin4/)
 * (@benjamin4)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/wp-rocket-cache-compatibilty/#post-7041491)
 * 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](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](https://wordpress.org/support/users/andreu/)
 * (@andreu)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/wp-rocket-cache-compatibilty/#post-7041498)
 * 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.
 *  [Benjamin Pick](https://wordpress.org/support/users/benjamin4/)
 * (@benjamin4)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/wp-rocket-cache-compatibilty/#post-7041558)
 * This is also one possible reason:
 * [http://docs.wp-rocket.me/article/141-overriding-donotcachepage-constant-via-filter](http://docs.wp-rocket.me/article/141-overriding-donotcachepage-constant-via-filter)
 *  Thread Starter [andreu](https://wordpress.org/support/users/andreu/)
 * (@andreu)
 * [10 years ago](https://wordpress.org/support/topic/wp-rocket-cache-compatibilty/#post-7041753)
 * 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!
 *  [Benjamin Pick](https://wordpress.org/support/users/benjamin4/)
 * (@benjamin4)
 * [10 years ago](https://wordpress.org/support/topic/wp-rocket-cache-compatibilty/#post-7041754)
 * 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 …

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

The topic ‘WP Rocket cache compatibilty’ is closed to new replies.

 * ![](https://ps.w.org/geoip-detect/assets/icon-256x256.jpg?rev=978998)
 * [Geolocation IP Detection](https://wordpress.org/plugins/geoip-detect/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/geoip-detect/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/geoip-detect/)
 * [Active Topics](https://wordpress.org/support/plugin/geoip-detect/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/geoip-detect/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/geoip-detect/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Benjamin Pick](https://wordpress.org/support/users/benjamin4/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/wp-rocket-cache-compatibilty/#post-7041754)
 * Status: not resolved