Setting up cloudflare with Super cache
Integrating Cloudflare with Super Page Cache creates a powerful dual-layer caching system that dramatically improves your website's global performance. This guide will walk you through the complete setup process, optimization strategies, and troubleshooting steps.
Dual Layer Caching Architecture | Step-by-Step Integration Process | Verification of CloudFlare Integration |
Monitoring and Maintenance |
Understanding the Cloudflare + Super Page Cache Stack
How It Works Together
Layer 1: Cloudflare Edge Cache
- Serves cached content from global edge locations
- Reduces server load and improves international performance
- Handles static assets (images, CSS, JS, fonts)
Layer 2: Super Page Cache
- Generates and serves cached HTML from your server
- Handles dynamic content caching
- Provides server-level optimization
Benefits of Integration
- 60-90% faster load times globally
- Reduced server resource usage by up to 80%
- Enhanced security with Cloudflare's protection
- Better SEO performance with improved Core Web Vitals
Prerequisites
Before starting, ensure you have:
- Active Super Page Cache plugin installed and working
- Cloudflare account (free tier is sufficient to start)
Note: If you don't have a Cloudflare account, then you can create one by following this guide. Also, please ensure you add your site to Cloudflare and all DNS records are configured correctly. You can check this guide for more information.
Step-by-Step Integration Process
- Go to WordPress Admin → Super Page Cache → Settings
- Navigate to the Cloudflare Integration tab
- Select the API Key or API Token method from the Authentication Mode dropdown.
- Enter your Cloudflare credentials.
Click on the Connect to Cloudflare button.
- After this, Select the Zone from the dropdown.
Note: To learn how to obtain API key and API token information for the Setup process, you can follow this guide.
Verification of Cloudflare Integration
Test 1: Check within the Plugin.
- Click on the Test Cache button inside the plugin.
- A popup will show with the results.
Test 2: Check Cache Headers
- Open your website in Incognito tab in your browser.
- Press F12 to open Developer Tools
- Go to Network tab and refresh the page and check the first request of your domain( e.g. example.com)
- Look for these headers in the response:
CF-Cache-Status: HIT
(Cloudflare cache)x-wp-spc-disk-cache: HIT
(Super Page Cache)
Monitoring and Maintenance
Key Metrics to Monitor
Cloudflare Analytics:
- Cache hit ratio (target: >85%)
- Bandwidth savings
- Page load time improvements
- Security threat blocks
Super Page Cache Analytics:
- Server cache hit ratio
- Cache file generation rate
- Storage usage
- Performance improvements
Congratulations! You've successfully integrated Cloudflare with Super Page Cache. Your website should now benefit from global edge caching combined with optimized server-side caching, resulting in significantly improved performance for visitors worldwide.
Monitor your analytics regularly and fine-tune settings based on your specific traffic patterns and performance goals.