
前言介紹
- 這款 WordPress 外掛「VaryCache」是 2026-01-08 上架。
- 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
- 上一次更新是 2026-01-10,距離現在已有 46 天。
- 外掛最低要求 WordPress 5.0 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 7.4 以上。
- 尚未有人給過這款外掛評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
gkap186 |
外掛標籤
cache | a b testing | performance | geo-targeting | personalization |
內容簡介
```html
<ul>
<li><strong>總結:</strong> VaryCache 是一個功能強大的 WordPress 快取外掛,將頁面快取和內容個性化結合在一起。您可以根據 A/B 測試、訪客位置或 URL 參數提供不同版本的快取頁面,同時保持極佳的效能。</li>
</ul>
<ul>
<li><strong>問題:</strong> VaryCache 可以根據哪些條件提供不同版本的頁面快取?</li>
<li><strong>答案:</strong> 透過 A/B 測試、訪客位置,或 URL 參數。</li>
</ul>
<ul>
<li><strong>問題:</strong> VaryCache 提供哪些核心快取功能?</li>
<li><strong>答案:</strong>
<ul>
<li>Page Cache - 基於文件的快取,快速提供頁面,無需使用資料庫</li>
<li>REST API Cache - 快取 REST API 回應,減少伺服器負載</li>
<li>Cache Preload - 從站點地圖自動預熱快取</li>
<li>Browser Cache Headers - 快取控制、到期時間、最後修改時間、異動標頭</li>
</ul>
</li>
</ul>
<ul>
<li><strong>問題:</strong> VaryCache 的內容個性化功能有哪些?</li>
<li><strong>答案:</strong>
<ul>
<li>A/B Testing - 創建多個測試及其權重變化(50/50、70/30 等)</li>
<li>Geo Targeting - 根據訪客國家/地區顯示不同內容</li>
<li>Query Parameters - 根據 UTM 標籤和其他 URL 參數快取變化</li>
</ul>
</li>
</ul>
<ul>
<li><strong>問題:</strong> VaryCache 提供哪些速度優化功能?</li>
<li><strong>答案:</strong>
<ul>
<li>HTML Minification - 移除空格以減少頁面大小</li>
<li>DNS Prefetch - 預先解析外部域名以加快載入速度</li>
<li>Preload Resources - 預先載入字型、CSS 和主要圖像以改善 LCP</li>
<li>Link Prefetch - 懸停時預先載入頁面以實現即時導覽</li>
<li>Disable Emoji - 移除 WordPress 表情符號腳本(省下約 15KB)</li>
<li>Remove Query Strings - 更好的 CDN 快取靜態資源</li>
<li>Image Dimensions - 自動添加丟失的寬度/高度以防止 CLS</li>
</ul>
</li>
</ul>
<ul>
<li><strong>問題:</strong> VaryCache 具備哪些開發者功能?</li>
<li><strong>答案:</strong>
<ul>
<li>Shortcodes - 在文章和頁面中輕鬆切換內容</li>
<li>PHP 函數 - 供主題開發者使用的輔助功能</li>
<li>Debug Panel - 前端的視覺化調試面板</li>
<li>CDN Compatible - 與 CloudFront、Cloudflare 和其他 CDN 兼容</li>
<li>Translation Ready - 包含俄語翻譯</li>
</ul>
</li>
</ul>
```
原文外掛簡介
VaryCache is a powerful WordPress caching plugin that combines page caching with content personalization. Serve different cached versions of your pages based on A/B tests, visitor location, or URL parameters — all while maintaining excellent performance.
Core Caching
Page Cache – File-based caching for fast page delivery without database overhead
REST API Cache – Cache REST API responses to reduce server load
Cache Preload – Automatic cache warming from sitemap
Browser Cache Headers – Cache-Control, Expires, Last-Modified, Vary headers
Content Personalization
A/B Testing – Create multiple tests with weighted variants (50/50, 70/30, etc.)
Geo Targeting – Show different content based on visitor’s country
Query Parameters – Cache variations based on UTM tags and other URL parameters
Speed Optimizations
HTML Minification – Remove whitespace to reduce page size
DNS Prefetch – Pre-resolve external domains for faster loading
Preload Resources – Preload fonts, CSS, and hero images for better LCP
Link Prefetch – Preload pages on hover for instant navigation
Disable Emoji – Remove WordPress emoji scripts (~15KB savings)
Remove Query Strings – Better CDN caching for static resources
Image Dimensions – Auto-add missing width/height to prevent CLS
Gzip Compression – Compress HTML output to reduce page size by ~70%
Developer Features
Shortcodes – Easy content switching in posts and pages
PHP Functions – Helper functions for theme developers
Debug Panel – Visual debugging panel on frontend
CDN Compatible – Works with CloudFront, Cloudflare, and other CDNs
Translation Ready – Includes Russian translation
Shortcodes
[varycache_ab v="A"]Content for variant A[/varycache_ab]
[varycache_ab v="B"]Content for variant B[/varycache_ab]
[varycache_ab test="pricing" v="X"]Content for specific test[/varycache_ab]
[varycache_geo country="US"]Content for US visitors[/varycache_geo]
PHP Functions
// A/B Testing
if ( varycache_is_variant( 'A' ) ) {
// Show variant A content
}
$variant = varycache_get_variant(); // Returns 'A', 'B', etc.
// Geo Targeting
if ( varycache_is_geo( 'US' ) ) {
// Show US-specific content
}
$country = varycache_get_geo(); // Returns 'US', 'RU', etc.
Page Patterns
Flexible page matching with wildcards and regex:
/ – Homepage only
/pricing – Exact page match
/blog/* – Single level wildcard
/shop/** – Any depth wildcard
~^/post/\d+$ – Regular expression (prefix with ~)
Requirements
WordPress 5.0 or higher
PHP 7.4 or higher
Write access to wp-content directory
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「VaryCache」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.2.0 | 1.2.1 | 1.2.2 | 1.2.3 | trunk |
延伸相關外掛(你可能也想知道)
If-So Conditional Content for Elementor 》### 總結:輕鬆個性化,就在 Elementor 內部, - 輕鬆為訪客打造個性化體驗,根據位置、行為、搜索關鍵詞等動態調整 Elementor 頁面。, - 針對每位訪客量身定...。
If-So Geolocation 》- 使用此插件可以顯示用戶的國旗(圖像或表情符號),並記錄地理位置請求,以分析日誌來查找並排除機器人流量。- If-So 是一個簡單易用的 WordPress 插件,無...。
WT GeoTargeting 》WT Geotargeting 是一款免費的 CMS WordPress 外掛程式,藉由簡碼 (Shortcodes) 在網站頁面上設定地理位置定位。, 地理位置定位是將網站頁面的內容 (標題、文...。
GeoTargeting Lite – WordPress Geolocation 》這個針對 WordPress 的地理定位外掛是基於 Maxmind GeoIP2 資料而建立的,讓您能夠基於使用者所在的國家建立動態內容。, 透過簡單的短碼,您可以指定哪些國家...。belingoGeo 》此外掛可允許選擇城市,並對每個城市創建獨特的網頁與獨特的 URL,從而達到為搜尋引擎獨特化內容的目的。, , 安裝和配置掛件, 如何在掛件中排序城市, 如何在...。
IP2Location Tags 》IP2Location Tags 可以透過 IP 位址查找,幫助您根據不同國家和地區的地理位置為網站訪客提供特定內容。這個外掛可以偵測訪客的 IP 位址並將其轉換為地理位置...。
Geo Content 》, 此外掛能夠按照國家、州和城市創造特定區域的內容。適用於透過國家、州和城市進行網站個性化。, 此外掛可以讓您選擇從Geo Targetly傳送內容或使用WordPress...。
IP2Location Variables 》這個實用的程式庫讓您輕鬆方便地找到網站訪客的位置,根據 IP 位址查詢提供地理資訊。它也可以用於在特定位置的文章中顯示地理數據信息,並幫助您創建地理目...。
ClarifyIP Geo Blocking 》<!DOCTYPE html>, <html>, <head>, <title>繁體中文WP外掛介紹</title>, </head>, <body>, , <h2>總結:...。
DocoDoco GeoTargeting 》本プラグインは、IPアドレスに基づくアクセス元の位置情報や企業属性に基づき、サイト訪問者に表示するコンテンツを切り換えることができます。, また、ABテ...。SwiftPost 》Swift Post 是一個靠強大的廣告伺服器支持的超高速外掛程式,讓您能夠在您的訂閱中的任何標準貼文上設定動態控制,而不會給您的網站帶來壓力和延遲問題。此外...。
SwiftAd 》Swift Ad 是由強大的廣告伺服器支援的外掛,您可以利用頻率上限、地理定位、設定運行日期和總次數限制等工具,掌握控制權。, Swift Ad 是一個快速的外掛,因...。
GT-Geo Targeting 》根據使用者的國家進行地理定位(GEO target)內容。, 特點:, , 可用於內容的快捷方式。, 顯示內容給多個國家的用戶。, 隱藏多個國家的用戶的內容。, 向無法...。
Geo-Target Dragon Radar 》這是一款 ULTRA Léger (非常輕量級)的外掛,可以通過使用者的 IP 地址來顯示其大概位置,以提高轉換率。, 向訪客展示動態地理目標定位。只需輸入此短代碼 [...。
Geo Redirects Lite 》地理定向外掛可以使用 GeoIP 資料庫來根據使用者的國家進行重導向, , 進階版可在 https://geotargetingwp.com 購買, 功能包括:, * 根據國家、州或城市進...。
