How WhoKnew Views™ works with page caching, object caching, and CDNs
WhoKnew Views™ is built to work with all popular caching solutions—page caching, object caching, browser caching, and CDNs. The plugin uses server-side tracking that functions correctly even when pages are served from cache.
✅ No Known Caching Conflicts
⚡
Cache-Friendly by Design
WhoKnew Views™ has been tested with all major caching plugins and CDNs. There are no known compatibility issues—the plugin’s architecture is designed to work with fully cached pages.
🔧 How Caching Compatibility Works
The plugin uses multiple strategies to ensure accurate view counting with any caching setup:
🍪
Cookie-Based Tracking
View tracking uses browser cookies, which are sent with every request—even to cached pages. Each visitor’s view is counted server-side when they first visit.
🖥️
Server-Side Fingerprinting
Transients track visitor fingerprints as a fallback for incognito mode. This works independently of page cache since it’s stored in the database.
🔄
WordPress Hooks
View counting happens via WordPress hooks on the wp action, which fires on every page request before content is served from cache.
🗑️
Auto Cache Clearing
When settings change, the plugin automatically clears its internal transients and WordPress object cache to ensure fresh data.
📦 Compatible Caching Plugins
WhoKnew Views™ works with all popular caching solutions:
🚀
WP Rocket
⚡
LiteSpeed Cache
🌐
W3 Total Cache
💨
WP Super Cache
🔧
WP Fastest Cache
🛡️
SG Optimizer
☁️
Cloudflare
🔶
Redis/Memcached
📊 What Gets Cached vs. What Doesn’t
| Component | Cacheable? | Reason |
|---|---|---|
| Page HTML | ✅ Yes | Counter display is rendered inline |
| View Count Display | ✅ Yes | Static number; updates on cache refresh |
| View Tracking | ❌ No | Runs server-side via WordPress hooks |
| Visitor Cookies | ❌ No | Sent with every request by browser |
| Admin Settings | ❌ No | Admin pages excluded from cache |
💡 Best Practices
While no special configuration is required, these tips ensure optimal performance:
1
Clear cache after changing settings
If you change view counter styling or settings, clear your caching plugin’s cache so visitors see the updated display.
2
Admin pages are excluded
Most caching plugins automatically exclude /wp-admin/. WhoKnew Views™ settings pages don’t need special exclusion rules.
3
Object cache enhances performance
Redis or Memcached object caching improves transient performance, making WhoKnew Views™ even faster.
🔄 When to Clear Your Cache
Clear your caching plugin after:
🎨 Changing styling
Colors, fonts, icons, position
📝 Updating display text
Custom text format changes
👁️ Visibility settings
Showing/hiding the counter
🔌 Plugin updates
After updating WhoKnew Views™
✅ Good News: View counts themselves don’t require cache clearing. The displayed number is calculated fresh when the cache is generated, and view tracking happens independently of page cache.
🛠️ Troubleshooting Display Issues
If the view counter looks outdated or styling changes aren’t appearing:
- Clear your caching plugin’s cache — Purge all cached pages
- Clear your browser cache — Hard refresh with
Ctrl+Shift+R - Clear CDN cache — If using Cloudflare or similar, purge there too
- Check incognito mode — View the page in a fresh browser session
📊 CDN Considerations
When using a CDN like Cloudflare, Fastly, or AWS CloudFront:
| Setting | Recommendation |
|---|---|
| HTML Caching | ✅ Safe to cache product pages |
| Cookie Forwarding | ✅ Forward wkv_* cookies to origin |
| Cache TTL | ✅ Use reasonable TTL (1-24 hours) |
| Purge on Update | ✅ Clear CDN after styling changes |
View tracking works correctly with any CDN configuration because tracking happens at the origin server when cookies are processed.