Country Caching Extension

Extends some caching plugins to cache by page/visitor country instead of just page. Solves "wrong country displayed" Geo-Location issues.

Author:Andrew Wrigley (profile at wordpress.org)
WordPress version required:3.3
WordPress version tested:4.9.18
Plugin version:1.2.0
Added to WordPress repository:04-01-2015
Last updated:24-03-2021
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:100
Rated by:4
Plugin URI:http://means.us.com
Total downloads:3 025
Active installs:20+
plugin download
Click to start download

DUE TO PERSONAL CIRCUMSTANCES I AM NO LONGER ABLE TO DEVELOP OR SUPPORT THIS PLUGIN. IF YOU ARE INTERESTED IN ADOPTING THIS PLUGIN SEE https://developer.wordpress.org/plugins/wordpress-org/take-over-an-existing-plugin/

Solves wrong country content for visitor Geo-Location issues. Enables Comet Cache to display the correct page and widget content for a visitor’s country.

Bonus also makes Cookie Notice work correctly with Comet Cache (whether using country/EU geolocation or not).

If you need country caching with other caching plugins then see “Advice” below.

This plugin adds an extension to Comet Cache enabling it to create separate snapshots (cache) for each page based on country location.

Extra caching can be restricted to specific countries and/or a group of countries. E.g. if you are based in the US but show different content to Canadian,Mexican & EU country visitors, you can set separate caching for CA & MX visitors + single group cache for EU visitors; the remainder of your visitors will standard cache (“US”) content.

It works on normal WordPress and on Multisite (see FAQ).

Comet Cache is designed to work with add-on scripts and should work seamlessly with this plugin.

Identification of visitor country for caching

Via Cloudflare or Maxmind. (this product includes GeoLite2 data created by MaxMind, available from http://www.maxmind.com ) It is also possible to connect a different GeoLocation sytem of your choice (see documentation).

If you use Cloudflare and have “switched on” their GeoLocation option ( see Cloudflare’s instructions ) then it will be used to identify visitor country. If not, then the Maxmind Country Database will be used.

Updating (If not using Cloudflare for country) The installed Maxmind Country/IP data file will lose accuracy over time. To automate a monthly update of this file, install and enable the Category Country Aware (CCA) plugin (Country Caching and the Cataegory Country Aware (CCA) plugins use the same Maxmind data file in the same folder and the CCA plugin includes code for its update). The CCA plugin has many other features and functionality you may find useful. Alternatively you can manually update (FAQ below).

Additional Info and support

ADVICE:

Don’t use ANY Caching plugin UNLESS you know how to use an FTP program (e.g. Filezilla).

Support forums show that Caching plugins including Comet Cache can result in “white screen” problems for some users; the only solution may be to delete files using FTP/Cpanel or OS command line.

The Country Caching plugin deletes files on deactivation/delete, but in “white screen” situations you may have to resort to “manual” deletion – see FAQ for instructions.

WP Super Cache: is also designed to work with “add-ons” and an equivalent of this plugin is available in the WordPress repository.

W3 Total Cache does not currently provide a suitable hook for plugin country caching. Others have requested this facility.

License

This program is free software licensed under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.

In particular please note the following:

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


Screenshots
FAQ
ChangeLog