[WordPress] 外掛分享: Country Caching Extension

首頁外掛目錄 › Country Caching Extension
10+
安裝啟用
★★★★★
5/5 分(4 則評價)
1821 天前
最後更新
問題解決
WordPress 3.3+ PHP 5.4+ v1.2.0 上架:2015-01-03

內容簡介

由於個人原因,我不能再開發或支援此外掛程式。如果您有興趣接手此外掛程式,請參閱 https://developer.wordpress.org/plugins/wordpress-org/take-over-an-existing-plugin/

解決訪客地理位置錯誤的問題。讓 Comet Cache 顯示適當的頁面和小工具內容給訪客所在國家/地區。

此外掛程式還可與 Cookie Notice 正確配合使用,不論是否使用國家/歐盟地理定位。

如果您需要其他快取外掛程式的國家快取,請參閱以下「建議」。

此外掛程式增加了一個功能,它可以擴展 Comet Cache,使其能夠為每個頁面基於國家/地區位置創建單獨的快照(快取)。

額外的快取可以限制在特定的國家/地區或一組國家/地區。例如,如果您位於美國,但向加拿大、墨西哥和歐盟國家的訪客顯示不同的內容,您可以為 CA 和 MX 訪客設置獨立的快取,為 EU 訪客設置單一群組的快取,其他訪客將使用標準快取(「美國」)內容。

它可以在常規 WordPress 和多站點上運作(參閱常見問題解答)。

Comet Cache 設計用於與附加腳本一起工作,並應該能夠與此外掛程式無縫配合使用。

辨識用於快取的訪客國家/地區

透過 Cloudflare 或 Maxmind。 (此產品包含由 MaxMind 創建的 GeoLite2 數據,可從 http://www.maxmind.com 取得)也可以連接您選擇的不同地理定位系統(參閱文件)。

如果您使用 Cloudflare,並且已經「啟用」了他們的 GeoLocation 選項(請參閱 Cloudflare 的說明),那麼它將用於識別訪客的國家/地區。如果沒有,那麼將使用 Maxmind 國家數據庫。

更新(如果不使用 Cloudflare 國家)安裝的 Maxmind Country / IP 數據文件會隨著時間而失去準確性。要自動更新此文件,請安裝並啟用Category Country Aware (CCA) plugin (Country Caching 和 Cataegory Country Aware (CCA) 插件使用相同的 Maxmind 數據檔案夾,並且 CCA 插件包括其更新代碼)。CCA 外掛程式具有許多其他功能和功能,您可能會找到它有用。或者,您可以手動更新(請參閱常見問題解答)。

其他資訊和支援

建議:

不要使用除非您知道如何使用 FTP 程序(例如 Filezilla)的任何快取插件。

支援論壇顯示,包括 Comet Cache 在內的快取插件可能會導致某些用戶出現「白屏」問題;唯一的解決方法可能是使用 FTP/Cpanel 或 OS 命令行刪除文件。

Country Caching 插件在停用/刪除時會刪除文件,但在「白屏」情況下,您可能需要採用「手動」刪除幫助,請參閱常見問題解答以獲取說明。

WP Super Cache:也設計可與「附加腳本」一起工作,並在 WordPress 儲存庫中提供此插件的相對應版本。

目前 W3 Total Cache 沒有提供適合插件國家快取的鈎子。其他人已經要求提供此功能。

許可證

此程式是免費軟體,採用免費軟體基金會發布的GNU通用公共許可證2.0版之條款。

请注意,此文案从“请不要”以及下一行的文字截断。您需要核对原文案是否正常结束。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.2.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「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.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon