Title: Cache
Last modified: September 18, 2019

---

# Cache

 *  [zeljkoilogic](https://wordpress.org/support/users/zeljkoilogic/)
 * (@zeljkoilogic)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/cache-49/)
 * Hey, love the plugin, and I have a question regarding the caching.
    Is there 
   a specific plugin script that I can add to exclude rules so its not cached instead
   of disabling the cache entirely?

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

 *  Plugin Author [Benjamin Pick](https://wordpress.org/support/users/benjaminpick/)
 * (@benjaminpick)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/cache-49/#post-11943664)
 * The plugin has an Web API-Cache (for Maxmind Precision, Hostinfo and Ipstack)–
   is this what you mean?
 * Otherwise, I can’t help you as this depends on the page caching plugin you use.
   Normally you can define URLs that should be excluded in the cache etc. and maybe
   even this is not necessary as GeoIP already tries to tell the caching plugin 
   to not cache as soon as it is used (if the “disable cache”-option is enabled),
   so pages that do not call the geoip-PHP-functions will still be cached..
 *  Thread Starter [zeljkoilogic](https://wordpress.org/support/users/zeljkoilogic/)
 * (@zeljkoilogic)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/cache-49/#post-11944102)
 * Hey Benjamin,
 * Thank you for replying.
    I am using Contact Form 7 with GeoIP Detection on almost
   every page, and when the option to Disable Cache is enabled, no pages are cached.
 * I am using WP Rocket, or Autoptimize (I have 2 different sites with the same 
   question).
 * What I meant in the question is: Is there a way just to exclude the GeoIP Detection
   from the cache, not the entire page.
 * Usually what I do with the WP Rocket is, I exclude /wp-contet/some-plugin/(.*).
   js and it none of the plugin files are cached.
    But it did not work in this case.
 *  [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/cache-49/#post-11944174)
 * You might have to exclude `/wp-content/some-plugin/` to Autoptimize’s comma-separated
   JS optimization exclusion list as well?
 * frank (ao dev)
 *  Thread Starter [zeljkoilogic](https://wordpress.org/support/users/zeljkoilogic/)
 * (@zeljkoilogic)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/cache-49/#post-11944250)
 * Hey Frank,
 * Tried that with the Autoptimize on one of the sites, and did not work,
    maybe
   the GeoIP Detection requires something different, that is why I asked for help
   here.
 * Thank you for replying, btw.
 *  Plugin Author [Benjamin Pick](https://wordpress.org/support/users/benjaminpick/)
 * (@benjaminpick)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/cache-49/#post-11947356)
 * Please show me a screenshot of your current options, otherwise it’s too much 
   guesswork from my side.
    (JS caching should be no issue, try disabling HTML caching
   from Autoptimize to see if it is the JS or HTML.)
 *  [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/cache-49/#post-11947376)
 * > try disabling HTML caching from Autoptimize
 * AO does not cache HTML, it merely minifies it, leaving page caching to other 
   plugins 🙂
 *  Thread Starter [zeljkoilogic](https://wordpress.org/support/users/zeljkoilogic/)
 * (@zeljkoilogic)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/cache-49/#post-11966848)
 * Hey,
 * All is good now with the Autoptimize, thank you for the help.
 * This is the settings within the WP Rocket on the other site:
    [https://prnt.sc/paphlz](https://prnt.sc/paphlz)
   [https://ibb.co/wrjy6w7](https://ibb.co/wrjy6w7)
 * Thanks again.
 *  Plugin Author [Benjamin Pick](https://wordpress.org/support/users/benjaminpick/)
 * (@benjaminpick)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/cache-49/#post-12087041)
 * I still don’t know what exactly does not work – do you use the country selector
   for Contact Form 7 or only add the country to the email? Does the sending of 
   the mail work?

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

The topic ‘Cache’ 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/)

 * 8 replies
 * 3 participants
 * Last reply from: [Benjamin Pick](https://wordpress.org/support/users/benjaminpick/)
 * Last activity: [6 years, 7 months ago](https://wordpress.org/support/topic/cache-49/#post-12087041)
 * Status: not a support question