How to Set Up WordPress Caching for Maximum Speed (2026)
Configure WordPress caching to load pages 3-10x faster. Covers WP Super Cache, W3 Total Cache, WP Rocket, and host-level caching for Cloudways, Hostinger, and SiteGround.
Caching is the single most impactful WordPress performance optimization. Without caching, WordPress rebuilds every page from the database on each visit. With caching, it serves pre-built HTML — dramatically faster.
Understanding WordPress Caching Types
| Cache Type | What It Does | Where It Lives | |-----------|-------------|----------------| | Page cache | Stores complete HTML pages | Server disk | | Browser cache | Stores static files on visitor's device | Browser | | Object cache | Caches database query results | Server RAM (Redis) | | CDN cache | Stores assets at edge locations worldwide | CDN network | | OPcache | Caches PHP bytecode | Server RAM |
For most WordPress sites, enable page caching + browser caching first. Add object caching (Redis) if available.
Option 1: WP Super Cache (Free, Simple)
Best for: beginners, simple blogs, low-traffic sites.
Installation:
- Go to Plugins → Add New, search WP Super Cache
- Install and activate
Basic setup:
- Go to Settings → WP Super Cache
- Click Easy tab
- Click Enable Caching
- Click Update Status
- Test your cache at the link shown
Recommended settings (Advanced tab):
- Cache delivery method: PHP (mod_rewrite is faster but requires
.htaccesschanges) - Don't cache for known users: ON
- Don't cache for commenters: ON
- Compress pages: ON (reduces file size)
- Cache rebuild: ON
Preload cache:
- Go to Preload tab
- Enable Preload mode
- Click Preload Cache Now
This generates cache files for all your pages proactively, so the first visitor to each page also gets a cached version.
Option 2: W3 Total Cache (Free, Powerful)
Best for: developers, sites with complex caching needs, VPS/cloud hosting.
Installation:
- Install W3 Total Cache from the plugin directory
Key settings:
- Go to Performance → General Settings
- Enable:
- Page Cache: Disk: Enhanced
- Minify: Enabled (use Auto mode)
- Browser Cache: Enabled
- Object Cache: Enabled (requires Redis/Memcached on server)
- CDN: Enable if you have a CDN configured
Page Cache settings: Go to Performance → Page Cache → Page Cache Settings:
- Cache front page: ON
- Cache feeds: ON
- Cache SSL requests: ON
- Don't cache pages with GET parameters: ON
Minify settings: Go to Performance → Minify:
- Minify HTML: ON
- Minify CSS: ON — combine files, inline CSS
- Minify JS: ON — combine files
Warning: Minification can break some themes/plugins. Test thoroughly after enabling. If something breaks, disable JavaScript minification first.
Browser Cache settings: Go to Performance → Browser Cache:
- Set Expires Header Lifetime to 31536000 (1 year) for static assets
- Enable Enable HTTP (gzip) compression
Option 3: WP Rocket (Paid — Best Results)
Best for: most WordPress sites that want the best performance with minimal configuration.
Cost: $59/year for 1 site, $119/year for 3 sites.
WP Rocket is the highest-rated WordPress caching plugin. Its defaults are better than most manually configured free plugins, and setup takes 2 minutes.
Setup after purchasing at wp-rocket.me:
- Install via Plugins → Upload Plugin
- Activate with your license key
- Go to Settings → WP Rocket
Recommended settings:
Cache tab:
- Enable caching for mobile devices: ON
- Cache lifespan: 10 hours
File Optimization tab:
- Minify CSS: ON
- Combine CSS files: ON (test first)
- Minify JS: ON
- Defer JS execution: ON
- Delay JS execution: ON
Media tab:
- LazyLoad images: ON
- LazyLoad iframes: ON
- Replace YouTube iframe with thumbnail: ON
Preload tab:
- Activate preloading: ON
- Prefetch DNS requests: add your CDN domain
- Preload links: ON (link prefetching)
Advanced Rules: Add URLs to exclude from caching (cart, checkout, account pages for WooCommerce).
Option 4: Host-Level Caching (Use This If Available)
Many managed hosts include server-level caching that's faster than any plugin.
SiteGround SuperCacher
SiteGround's built-in caching system:
- Log in to Site Tools → Speed → Caching
- Enable Dynamic Cache (server-level caching for WordPress)
- Enable Memcached (object caching)
- Enable Static Cache (for static files)
No plugin needed — caching is handled at the server level.
Cloudways Breeze
Cloudways includes a free caching plugin called Breeze:
- In WordPress, go to Plugins — Breeze is pre-installed
- Go to Settings → Breeze
- Enable Full Page Cache
- Enable Cache Static Files
- Configure Varnish Cache settings (if enabled on your Cloudways server)
For Cloudways, also enable Redis Object Cache as covered in the database optimization guide.
Kinsta Cache
Kinsta uses a server-level full-page cache:
- Log in to MyKinsta → Sites → [site] → Cache
- Cache is enabled by default — configure exclusions here
- Clear cache when needed from the same panel
- Use the Kinsta MU Plugin (pre-installed) to manage cache from WordPress
Kinsta also provides Redis for object caching as an add-on.
Hostinger LiteSpeed Cache
Hostinger servers run LiteSpeed, and the LiteSpeed Cache plugin is the fastest caching option for these servers:
- Install LiteSpeed Cache plugin
- Go to LiteSpeed Cache → Cache
- Enable Enable LiteSpeed Cache
- Configure CDN settings if using Cloudflare
Testing Your Cache Setup
Before You Test
Ensure you're testing as a logged-out user. WordPress caching typically doesn't apply to logged-in users.
Test 1: Check Cache Headers
- Open Chrome DevTools (F12) → Network tab
- Reload your page while logged out
- Click on the HTML document in the network waterfall
- Check response headers for:
X-Cache: HIT(W3TC, WP Super Cache)CF-Cache-Status: HIT(Cloudflare)X-Kinsta-Cache: HIT(Kinsta)
Test 2: GTmetrix Speed Test
- Go to gtmetrix.com
- Test your URL from multiple locations
- With caching: TTFB should drop below 300ms, often under 100ms
Typical improvements with caching:
- TTFB: from 500ms → 50–100ms
- Page load time: from 2-3s → 0.5–1s
- GTmetrix grade: from C/D → A/B
Test 3: Before/After Comparison
Run a GTmetrix test before enabling caching, note the results, enable caching, then test again. The improvement is usually dramatic enough to justify the 10-minute setup time.
Excluding Pages from Cache
Certain pages should never be cached:
- WooCommerce cart:
/cart/ - WooCommerce checkout:
/checkout/ - Account pages:
/my-account/ - Login pages:
/login/,/wp-login.php
Most caching plugins automatically exclude these. Verify in your plugin's exclusion settings.
Caching and HTTPS
Ensure your caching is configured for HTTPS. If your site uses SSL (it should), enable "Cache SSL requests" in your caching plugin. This prevents uncached responses for HTTPS visitors.
Also ensure your CDN cache rules include https:// variants of your URLs.
Want caching without the setup? Kinsta and Cloudways include advanced server-level caching out of the box — no plugin configuration required for basic caching.
Free Download
2026 Web Hosting Comparison Cheat Sheet
- ✓11 hosts ranked by speed, uptime & price
- ✓Renewal price traps to avoid
- ✓Best host for WordPress, WooCommerce & agencies
- ✓Exclusive discount codes for 2026
Free · Join 2,400+ readers · Unsubscribe anytime