manifest / performance / cc4r
Country Caching Extension For WP Rocket
Country Caching. Extends WP Rocket to cache by page/visitor country instead of just page.
★ 7stars
7forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/andy-wrigley/cc4r/archive/refs/heads/master.zipFrom the readme
Extends WP Rocket to cache by page/visitor country instead of just page. Solves "wrong country content" Geo-Location issues.
Allows WP Rocket to display the correct page/widget content for a visitor's country when you are using geo-location.
This plugin provides a Helper Script and user configurable settings that enables WP Rocket to create separate snapshots (cache) for each page based on country location.
Separate snapshots can be restricted to specific countries. E.g. if you are based in the US but customize some content for Canadian or Mexican visitors, you can restrict separate caching to CA & MX visitors; and all other visitors will see the same cached ("US") content.
You can also specify a single snapshot for a group of countries e.g. all European Union countries.
It works for both normal Wordpress and Multisite however on Multisite the same country caching settings are shared by all sites.
More info in the user guide
Identification of visitor country for caching
Choice of Cloudflare, Amazon Cloudfront (not tested), Server header/variable, other plugin, or Maxmind (when the plugin is first enabled it uploads GeoLite2 data created by MaxMind, availab