[wordpress插件] Country Caching Extension国家缓存扩展

wordpress 插件 文章 2020-04-03 15:30 487 0 全屏看文

AI助手支持GPT4.0

评分
100
描述

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.

使Comet Cache能够显示访问者所在国家的正确页面和小部件内容。

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

奖金还可使Cookie通知可以与Comet Cache一起正常使用(无论是否使用国家/欧盟地理位置)。

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.

此插件为Comet Cache添加了一个扩展名,使其可以根据国家/地区的位置为每个页面创建单独的快照(缓存)。

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;

如果您位于美国,但对加拿大,墨西哥和欧盟国家/地区的访问者显示不同的内容,则可以为CA和MX访问者设置单独的缓存+为欧盟访问者设置单个组的缓存;

the remainder of your visitors will standard cache (“US”) content.

其余的访问者将使用标准的缓存(“美国”)内容。

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

它可在普通WordPress和多站点上使用(请参阅FAQ)。

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

Comet Cache 旨在与附加脚本一起使用,并且应与此插件无缝配合。

Identification of visitor country for caching

要缓存的访问者国家/地区

Via Cloudflare or Maxmind.

通过Cloudflare或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).

(此产品包括由MaxMind创建的GeoLite2数据,可从http://www.maxmind.com获得。)还可以连接您选择的其他GeoLocation系统(请参阅文档)。

If you use Cloudflare and have “switched on” their GeoLocation option ( see Cloudflare's instructions ) then it will be used to identify visitor country.

-Geolocation-do-“ rel =” nofollow“> Cloudflare的说明),然后将其用于识别访问者所在的国家/地区。

If not, then the Maxmind Country Database will be used.

否则,将使用Maxmind国家数据库。

Updating (If not using Cloudflare for country) The installed Maxmind Country/IP data file will lose accuracy over time.

更新(如果未在国家/地区使用Cloudflare),安装的Maxmind Country / IP数据文件将随着时间的流逝而失去准确性。

To automate a monthly update of this file, install and enable the Category Country Aware (CCA) plugin (Country Caching

要每月自动更新此文件,请安装并启用类别国家/地区感知(CCA)插件(“国家/地区缓存”

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).

并且Cataegory Country Aware(CCA)插件在同一文件夹中使用相同的Maxmind数据文件,而CCA插件包含其更新代码)。

The CCA plugin has many other features and functionality you may find useful.

CCA插件还具有许多其他有用的功能。

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).

除非您知道如何使用FTP程序(例如Filezilla),否则不要使用任何Caching插件。

Support forums show that Caching plugins including Comet Cache can result in “white screen” problems for some users;

支持论坛显示,包括Comet Cache在内的缓存插件可能会导致某些用户出现“白屏”问题;

the only solution may be to delete files using FTP/Cpanel or OS command line.

唯一的解决方案可能是使用FTP / Cpanel或OS命令行删除文件。

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.

Country Caching插件会在停用/删除时删除文件,但是在“白屏”情况下,您可能不得不求助于“手动”删除–有关说明,请参见FAQ。

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

WP Super Cache:还设计为可与“附加组件”一起使用,并且该插件的等效项在WordPress存储库中可用。

W3 Total Cache does not currently provide a suitable hook for plugin country caching.

W3总高速缓存当前未 为插件国家/地区高速缓存提供合适的挂钩。

Others have requested this facility.

其他人已经请求了此功能

p>

>

License

许可证

This program is free software licensed under the terms of the GNU General Public

该程序是根据 GNU General Public条款获得许可的免费软件

License version 2 as published by the Free Software Foundation.

自由软件基金会发布的许可证版本2 。

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.

甚至没有对适销性或特定用途适用性的暗示保证。

安装步骤

The easiest way is direct from your WP Dashboard like any other widget:

最简单的方法是直接从WP仪表板像其他任何小部件一样

Once installed go to: “Dashboard->Country Caching”.

安装完成后,转到:“仪表板->国家/地区缓存”。

Check the “Enable CC Country Caching add-on” box, and save settings.

选中“ 启用CC国家/地区缓存加载项”框,然后保存设置。

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).

知道/“>类别国家/地区识别插件(在WordPress.Org上位于此处)。

下载地址
https://downloads.wordpress.org/plugin/country-caching-extension.zip
-EOF-

AI助手支持GPT4.0