Country Caching Extension
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.
Top keywords
- country16×3.01%
- cache10×1.88%
- caching10×1.88%
- maxmind6×1.13%
- see6×1.13%
- comet5×0.94%
- comet cache5×0.94%
- cca4×0.75%
- cloudflare4×0.75%
- content4×0.75%
- country caching4×0.75%
- visitor4×0.75%
IP Locator
IP Locator is a country and language detection tool for WordPress. It is fast, reliable and plug & play. It can detect and render the country, the main language and the country flag of each visitor of your site. It provides: a strong, accurate and ultra-fast IP and country detection; many shortcodes to display country names, languages and flags (emoji or vectorized); a shortcode to conditionally hide or show strings or other shortcodes; a CSS modifier to add a country-specific class to the body tag of your site; an automatic system to be always up to date (no API key, no IP data files to manually import); a full-featured API for plugins / themes developers. For full details, you can browse the shortcodes list or the API description (for developers). IP Locator can be used too to report the following main items and characteristics: KPIs: number of detected countries and languages, accesses breakdown and detection ratio; countries for real humans with public IPs; languages for real humans with public IPs; metrics variations; metrics distributions; full list of countries per channel; full list of countries per client (requires the free Device Detector plugin). Technically, IP Locator: works on dedicated or shared servers; can detect the source IP even behind proxies or load-balancers; can use AWS CloudFront, Cloudflare and Apache mod_geoip to speed-up detection; natively supports APCu caching(1) and all other dedicated object caching mechanisms, like Memcached or Redis; has a minimal footprint in the page rendering time; runs its data updates in background, without impact on the website speed; is fully compatible with multisites; natively supports names and languages localizations(2). (1): APCu needs to be activated on your server if you want to use it in IP Locator. (2): PHP Intl extension needs to be activated on your server if you want to use it in IP Locator. IP Locator uses IP data I curate myself and I publish via my own servers exclusively for IP Locator. Data is CC0 licensed. IP Locator accesses this service on a regular basis (if the option is checked) to maintain an up-to-date version of the data. IP Locator supports an extensive set of WP-CLI commands to: get location detail: see wp help location describe for details; display IP Locator status: see wp help location status for details; toggle on/off main settings: see wp help location settings for details; display location and languages statistics: see wp help location analytics for details. For a full help on WP-CLI commands in IP Locator, please read this guide. IP Locator is part of PerfOps One, a suite of free and open source WordPress plugins dedicated to observability and operations performance. IP Locator is a free and open source plugin for WordPress. It integrates many other free and open source works (as-is or modified). Please, see ‘about’ tab in the plugin settings to see the details. Developers If you’re a plugins / themes developer and want to take advantage of the detection features of IP Locator, visit the GitHub repository of the plugin to learn how to use it. Support This plugin is free and provided without warranty of any kind. Use it at your own risk, I’m not responsible for any improper use of this plugin, nor for any damage it might cause to your site. Always backup all your data before installing a new plugin. Anyway, I’ll be glad to help you if you encounter issues when using this plugin. Please read carefully the FAQ at the bottom of this page before requesting support. Privacy This plugin, as any piece of software, is neither compliant nor non-compliant with privacy laws and regulations. It is your responsibility to use it – by activating the corresponding options or services – with respect for the personal data of your users and applicable laws. This plugin doesn’t set any cookie in the user’s browser. This plugin may handle personally identifiable information (PII). If the GDPR or CCPA or similar regulation applies to your case, you must adapt your processes (consent management, security measure, treatment register, etc.). Donation If you like this plugin or find it useful and want to thank me for the work done, please consider making a donation to La Quadrature Du Net or the Electronic Frontier Foundation which are advocacy groups defending the rights and freedoms of citizens on the Internet. By supporting them, you help the daily actions they perform to defend our fundamental freedoms!