• Resolved pomogacs

    (@pomogacs)


    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://www.ads-software.com/plugins/quick-cache/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Raam Dev

    (@raamdev)

    @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“.

    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 www.ads-software.com) 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.