3 years ago WP Rocket asked me to to develop Country Caching for WP Rocket but at that time it wasn't feasible. Many Rocket users have also asked for this; and I recently rechecked Rocket Code and found I could produce a plugin. Click Read More for the guide and download link.
Read MoreCategory: GeoIP
Do you use Maxmind's free code and database file(s) for Geoip? Is updating your site with the latest data file one of those tasks you never have time to do? Here’s a “sit back and forget it” PHP script with error detection, recovery, and email notification to automate the process! Read More
Documentation is a work in progress. Create a file named “use-my-geolocation.inc” containing your custom cca_custom_lookup function and place it in your “/wp-content/cca_maxmind_data/” directory. As a minimum the function must: set $GLOBALS[‘CCA_ISO_CODE’] to the 2 character ISO country code identified by your geolocation system; if your geolocation system reports an error or cannot identify the visitor ... Read More
If you are using Cloudflare for geolocation then this page has no relevance or interest. The CCA & Country Caching Plugins check your server’s IP variables (in this order) “HTTP_CLIENT_IP”, “HTTP_X_FORWARDED_FOR”, “HTTP_X_REAL_IP and “REMOTE_ADDR” for the first occurrence of a valid IP address. However you can use different PHP server variables, or change the order ... Read More