Understanding Breeze Cache and Mobile Device Support
Content
Many WordPress site owners use different themes or serve different content to mobile and desktop visitors for an optimized user experience. A common question that arises for users of the Breeze cache plugin is how it handles this scenario and whether it creates separate caches for different devices.
The Core of the Issue: Single Cache Storage
Based on community discussions and user reports, the current version of the Breeze plugin does not generate or store separate cache files based on the user's device, user agent, or screen size. It serves the same cached HTML output to all visitors, regardless of whether they are on a desktop computer, a smartphone, or a tablet.
This behavior occurs because Breeze's caching mechanism is designed to be application-level and does not include logic to differentiate between device types when creating or serving a cached page. For sites that use functions like wp_is_mobile() to dynamically alter content, this can result in mobile users receiving the desktop version of the site from the cache, and vice-versa.
Why This Happens
Breeze is fundamentally a page caching plugin. Its primary function is to serve static HTML files to reduce server load and improve page load times. By default, it does not account for the varying HTTP headers that different devices send, which are typically used to determine which version of a site to show.
Current Workarounds and Considerations
While a native feature for separate mobile caching is not currently available in Breeze, users have a few options to consider:
- Disable Page Caching for Dynamic Sections: For sites with minor mobile-specific changes, it may be possible to use JavaScript on the front-end to adjust content after the cached page has loaded, though this is not an ideal solution for major layout differences.
- Explore Alternative Caching Solutions: Some other caching plugins, like W3 Total Cache, offer built-in options to create a separate cache for mobile user agents. If serving different cached content for mobile and desktop is a critical requirement for your site, you may need to evaluate other plugins that explicitly support this feature.
- Await Future Updates: The 'Breeze – WordPress Cache Plugin' team has acknowledged this user request in several support threads. They have stated that offering multiple caches for different devices is a proposed feature that might be available in an upcoming release. Users interested in this functionality should watch the plugin's official changelog for updates.
Looking Ahead
The need for distinct mobile caching is a recognized challenge within the WordPress community. For users committed to using Breeze, keeping the plugin updated is essential, as this highly-requested feature could be implemented in a future version.
Related Support Threads Support
-
Lazy load for imageshttps://wordpress.org/support/topic/lazy-load-lor-images/
-
multi-serverhttps://wordpress.org/support/topic/multi-server/
-
warm cache functionhttps://wordpress.org/support/topic/warm-cache-function/
-
Add DNS prefetch settinghttps://wordpress.org/support/topic/add-dns-prefetch-setting/
-
[Requested Feature] Load CSS Asynchttps://wordpress.org/support/topic/requested-feature-load-css-async/
-
Redis Supporthttps://wordpress.org/support/topic/redis-support-6/
-
Serve 3rd Party JS locallyhttps://wordpress.org/support/topic/serve-3rd-party-js-locally/
-
Add a Preload Cache Featurehttps://wordpress.org/support/topic/add-a-preload-cache-feature/
-
mobile supporthttps://wordpress.org/support/topic/mobile-support-23/
-
Preloading based on XML filehttps://wordpress.org/support/topic/preloading-based-on-xml-file/
-
Different Cache for Different User Agents or Screen Sizeshttps://wordpress.org/support/topic/different-cache-for-different-user-agents-or-screen-sizes/
-
Lazy load videohttps://wordpress.org/support/topic/lazy-load-video-2/
-
Cache warminghttps://wordpress.org/support/topic/cache-warming-2/
-
Caching Filters for Plugin Developershttps://wordpress.org/support/topic/caching-filters-for-plugin-developers/
-
Disable page cache, but keep minification?https://wordpress.org/support/topic/disable-page-cache-but-keep-minification/
-
Why isn’t memcached supported by Breeze?https://wordpress.org/support/topic/why-isnt-memcached-supported-by-breeze/
-
Mobile Cachehttps://wordpress.org/support/topic/mobile-cache-6/
-
*** Feature Request *** Redis Supporthttps://wordpress.org/support/topic/feature-request-redis-support/
-
Memcached supporthttps://wordpress.org/support/topic/memcached-support-2/
-
Can Breeze caching directly with NGINX?https://wordpress.org/support/topic/can-breeze-caching-directly-with-nginx/
-
[Missing feature] Preload / generate cache with crawlerhttps://wordpress.org/support/topic/missing-feature-preload-generate-cache-with-crawler/