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.6|
|Added to WordPress repository:||04-01-2015|
|Total downloads:||1 211|
Click to start download
The easiest way is direct from your WP Dashboard like any other widget:
Once installed go to: “Dashboard->Country Caching”. Check the “Enable CC Country Caching add-on” box, and save settings.
If you want automatic “3 weekly” update of Maxmind Country->IP range data then also install the Category Country Aware plugin (here on WordPress.Org).
Where can I find support/additional documentation
Support questions should be posted on WordPress.Org
Additional documentation is provided at http://wptest.means.us.com/quick-cache-and-geoip-enable-caching-by-pagevisitor-country-instead-of-just-page/
How do I know its working
See these checks.
How do I keep the Maxmind country/IP range data up to date
Automatically: install the Category Country Aware plugin from WordPress.Org and enable its settings; it will update your Maxmind data every “month”.
Manually: monthly/whatever; download “GeoLite2-Country.tar.gz” from Maxmind and extract the file “GeoLite2-Country.mmdb” and upload it to your servers “/wp-content/cca_maxmind_data/” directory.
Will it work on Multisites
Yes, it will be the same for all blogs (you can’t have it on for Blog A, and off for Blog B).
On MultiSites, the Country Caching settings menu will be visible on the Network Admin Dashboard (only).
How do I stop/remove Country Caching
Deactivating the plugin will remove the Caching Extension. Then clear Comet’s cache (Dashboard->Comet Cache->Clear)
If all else fails:
- Log into your site via FTP; e.g. with CoreFTP or FileZilla.
- Delete this file: /wp-content/ac-plugins/cca_qc_geoip_plugin.php
- Delete this directory: /wp-content/plugins/country-caching-extension/
- Then via your WordPress Admin: Dashboard->QuickCache->Clear
Fix for Cookie Notice, to make it work correctly with Comet Cache (whether or not you are using geolocation or CCA to restrict CN to EU visitors)
(if your site is not using Cloudflare) Maxmind GeoLite2 will be used for country look-up instead of Maxmind Legacy (no longer updated by Maxmind).
Connector also provided to allow use other GeoIP look-up system in place of CF/Maxmind country lite.
Added checking of additional server variables for visitor’s IP Address.
Fixed display bug on “Support Tab” – extension info will now display even if Caching has not been enabled in Comet Cache.
Support Tabs “Display GeoIP data” now displays values of the server’s visitor IP variables
Maxmind data files are now auto installed (when you first enable Country Caching) in a shared directory for use by other plugins.
The data files are provided by Maxmind under Creative Commons license, but the WordPress.org repository requires all files stored there should be licensed under GPL. The Plugin has been altered to comply.