VaryCache
Advanced caching with A/B testing, geo-targeting, and speed optimizations. Serve different cached versions of pages.
Consider an alternative
VaryCache shows warning signs in 2026 — compare the alternatives below before installing. Was last updated 9 months ago, and scores 36/100 on our health check.
- Small user base (<10 active installs)
- Very few reviews so far
- Only tested up to WordPress 6.9 (latest is 7.1)
How does it stack up?
Side-by-side on installs, updates, ratings & supportDaily downloads
Download spikes usually follow a new release — each site that auto-updates counts as a download.
Rankings
Where VaryCache stands todayWordPress.org search rankings
Live position in the plugin search, top 100| Keyword | Position |
|---|---|
| a b testing | >100 |
| cache | >100 |
| geo-targeting | >100 |
| performance | >100 |
| personalization | >100 |
About VaryCache
From the official readme · v1.2.3Description
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
Installation
- Upload the
varycachefolder to the/wp-content/plugins/directory - Activate the plugin through the ‘Plugins’ menu in WordPress
- Go to Settings > VaryCache to configure
Quick Start
- Enable caching in the plugin settings
- Configure Page Cache to cache all pages or specific URLs
- Optionally set up A/B tests, geo targeting, or query parameters
- Use shortcodes in your content to show different versions to different visitors
Using with Other Cache Plugins
If using another caching plugin, exclude pages with variant caching from that plugin’s cache. VaryCache will handle caching for those pages with variant support.
Frequently asked questions
What makes VaryCache different from other caching plugins?
VaryCache combines page caching with content personalization. Unlike traditional caching plugins that serve the same cached page to everyone, VaryCache can serve different cached versions based on A/B tests, visitor location, or URL parameters.
Can I use VaryCache just for page caching without A/B testing?
Yes! You can use VaryCache purely as a page cache. Enable “General Page Cache” in the Page Cache tab and configure which pages to cache. A/B testing, geo targeting, and query parameters are optional features.
How does geo targeting detect the visitor’s country?
VaryCache reads country information from HTTP headers provided by CDNs: – CloudFront: CloudFront-Viewer-Country – Cloudflare: CF-IPCountry – Custom: You can configure your own header name If no header is detected, the country code will be “XX”.
Does this work with page builders like Elementor?
Yes! The shortcodes work with any page builder including Elementor, Gutenberg, Divi, WPBakery, and others. Simply add the shortcode blocks where needed.
How are visitors assigned to A/B test variants?
Visitors are randomly assigned based on the weights you configure (e.g., 50% variant A, 50% variant B). The assignment is stored in a cookie so they see the same variant on subsequent visits.
Does A/B testing affect SEO?
No. Search engine bots see the default variant, and the canonical URL remains unchanged. This is the recommended approach per Google’s guidelines for A/B testing.
What are the speed optimization features?
VaryCache includes several Core Web Vitals optimizations: – HTML Minification – Reduces page size by removing whitespace – DNS Prefetch – Pre-resolves external domains (Google Fonts, Analytics, etc.) – Preload Resources – Preloads critical fonts, CSS, and hero images (improves LCP) – Disable Emoji – Removes WordPress emoji scripts (~15KB savings) – Image Dimensions – Adds missing width/height to prevent layout shifts (CLS) – Gzip Compression – Compresses HTML output to reduce page size by ~70% – Link Prefetch – Preloads pages when user hovers over links
How does REST API caching work?
You can configure specific REST API endpoints to be cached (e.g., /wp/v2/posts). Cached responses are served directly without executing PHP, significantly reducing server load for API-heavy sites.
Where are cache files stored?
Cache files are stored in wp-content/cache/varycache/. Settings are stored in wp-content/uploads/varycache/settings.json. Both locations are WordPress-compliant.
Can I clear the cache programmatically?
Yes, use VaryCache_Cache::clear_cache() in your code. The cache is also automatically cleared when posts are saved or deleted.
Does VaryCache work with CDNs?
Yes, but for A/B testing and geo targeting to work correctly, configure your CDN to: – Pass through cookies (for A/B test variant assignment) – Forward country headers (for geo targeting)
Changelog
New Gzip Compression feature reduces page size by ~70%. Enable in Speed tab for immediate performance boost.
1.2.3
- NEW: Gzip Compression – compress HTML output by ~70% for faster loading
- Core Web Vitals improvement: reduced page size for better performance
1.2.0
- NEW: Speed optimization tab with Core Web Vitals features
- NEW: HTML Minification – reduce page size by removing whitespace
- NEW: DNS Prefetch – pre-resolve external domains for faster loading
- NEW: Preload critical resources (fonts, CSS, images) for better LCP
- NEW: Remove query strings from static resources for better CDN caching
- NEW: Disable WordPress emoji scripts to save ~15KB
- NEW: Auto-add missing image dimensions to prevent CLS
- IMPROVED: Reorganized admin UI with logical grouping
- IMPROVED: Moved Link Prefetch and Browser Cache to Speed tab
- IMPROVED: Better separation of concerns in code
- Core Web Vitals optimizations: LCP, CLS improvements
1.1.0
- NEW: REST API caching – cache REST endpoints to reduce server load
- NEW: Cache Preload – automatic and manual cache warming from sitemap
- NEW: Browser Cache Headers – Cache-Control, Expires, Last-Modified, Vary
- NEW: Page Cache admin tab with all caching settings
- NEW: Test REST endpoints for debugging (/varycache/v1/test)
- IMPROVED: Admin interface with better organization
- IMPROVED: WordPress.org compliance updates
- IMPROVED: Changed prefix from ‘vc’ to ‘varycache’ per WordPress.org guidelines
- IMPROVED: Moved settings file to uploads directory per WordPress.org guidelines
- IMPROVED: Scripts now properly enqueued using wp_enqueue_script
- FIX: Various security improvements and code cleanup
1.0.0
- Initial release
- A/B testing with weighted variants
- Geo targeting via CloudFront/Cloudflare headers
- Query parameter caching
- Page pattern matching (wildcards, regex)
- Admin settings panel with tabs
- Cache management and reporting
- Debug panel
- Shortcodes and PHP helper functions
For developers
Is this your plugin? Show off the numbers.
Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.
Best VaryCache alternatives
All a b testing plugins →FAQ
VaryCache: quick answers
Straight answers, pulled from live WordPress.org data.
Live data from WordPress.org · checked Oct 4, 2026
Is VaryCache free?
Yes. VaryCache is free to download and use from the official WordPress.org plugin directory.
Is VaryCache safe to use in 2026?
VaryCache shows warning signs in 2026 — compare the alternatives below before installing. Was last updated 9 months ago, and scores 36/100 on our health check.
How many websites use VaryCache?
VaryCache is active on <10 WordPress websites and has been downloaded 466 times since it launched in January 2026. It was downloaded 52 times in the last 30 days.
Does VaryCache work with WordPress 7.1?
VaryCache is officially tested up to WordPress 6.9.9, while the latest release is 7.1.2. It may still work, but try it on a staging site first.
What PHP version does VaryCache need?
VaryCache requires PHP 7.4 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.
When was VaryCache last updated?
The latest version, 1.2.3, was released on January 10, 2026 (9 months ago).
Who makes VaryCache?
VaryCache is developed and maintained by gkap186.
What are the best alternatives to VaryCache?
The most popular alternatives to VaryCache are Unbounce Landing Pages (10K+ installs), If-So Dynamic Content (7K+ installs) and Wingify (5K+ installs).
Powered by PageForge
Want thousands of pages that rank like these? Build them in an afternoon.
This directory runs on the same engine as PageForge. Turn any spreadsheet, CSV or API into thousands of fast, SEO-ready WordPress pages — with schema, internal links and AI-written copy baked in.
- CSV, Google Sheets & API data sources
- AI content, schema & internal links per page
- Works with Elementor, Gutenberg, Yoast & Rank Math
- Free on WordPress.org — no credit card
