Title: Quick Cache &amp; geotargeting
Last modified: August 21, 2016

---

# Quick Cache & geotargeting

 *  Resolved [pomogacs](https://wordpress.org/support/users/pomogacs/)
 * (@pomogacs)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/quick-cache-geotargeting/)
 * Hello,
 * I’ve been using the quick cache plugin for a couple of months now, and I think
   it’s a great plugin – our website’s loading much faster. Now I have a problem
   which I couldn’t solve. The content of one of the widgets depends on which country
   the visitor is from, and the WP Geocode plugin detects this. However, if the 
   quick cache plugin is turned on, this detection is not always correct. For example,
   it seems as if after an American visitor the WP Geocode plugin detects the following
   European visitor as an American one. I tried changing the WP Geocode plugin’s
   sourcecode by inserting the following php code:
 * define(‘QUICK_CACHE_ALLOWED’, FALSE)
 * However, the result was that the quick cache plugin completely stopped working.
   I believe this may be because checking the visitor’s country happened on every
   page. Is there a way to exclude one of the widgets from the chaching? Or is it
   possible to make the WP Geocode plugin work correctly along with the quick cache
   plugin?
 * Thank you in advance,
    Gabor
 * [https://wordpress.org/plugins/quick-cache/](https://wordpress.org/plugins/quick-cache/)

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

 *  Plugin Author [Raam Dev](https://wordpress.org/support/users/raamdev/)
 * (@raamdev)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/quick-cache-geotargeting/#post-4600561)
 * [@pomogacs](https://wordpress.org/support/users/pomogacs/) Unfortunately, excluding
   a particular widget or part of a page from the cache is not possible without 
   custom integration with Quick Cache by writing an Advanced Cache plugin specifically
   for QC. You may want to contact the developer of the WP Geocode plugin to see
   if they can provide support for Quick Cache. See “[Writing Advanced Cache Plugins Specifically for Quick Cache](https://github.com/WebSharks/Quick-Cache/wiki/Plugin-Options#wiki-themeplugin-developers)“.
 *  [wrigs1](https://wordpress.org/support/users/wrigs1/)
 * (@wrigs1)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/quick-cache-geotargeting/#post-4600674)
 * As developer and user of a country geolocation plugin, I had the same concerns
   as the first poster. So I’ve developed a plugin extension to QC that may be of
   use to others reading this post.
 * The Country Caching Extension plugin for QC ([here on wordpress.org](https://wordpress.org/plugins/country-caching-extension/))
   uses QC’s published hook for 3rd party extensions. Instead of just page, content
   will now be cached by page + visitor country.
 * If you wish, you can limit the countries separately cached:
 * e.g. If you only serve “different” content to visitors from Canada or Germany,
   like a widget that serves Amazon.COM adverts by default, but Amazon.CA to Canadians,
   and Amazon.DE to Germans you can use the extension to tell QC to only create 
   separate cache for CA and DE visitors and use the “standard” cached page for 
   everyone else.

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

The topic ‘Quick Cache & geotargeting’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/quick-cache_efefef.svg)
 * [Quick Cache (Speed Without Compromise)](https://wordpress.org/plugins/quick-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/quick-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/quick-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/quick-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/quick-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/quick-cache/reviews/)

## Tags

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

 * 2 replies
 * 3 participants
 * Last reply from: [wrigs1](https://wordpress.org/support/users/wrigs1/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/quick-cache-geotargeting/#post-4600674)
 * Status: resolved