W3 Total Cache & Mobile Theme Switching
-
Short question: How do I make w3 create a separate page cache for each theme that is served?
Long Question:
I’ve been stumped for a while now on this, and in the end had to disable page caching completely on any site i have that has a mobile theme switcher. Basically what happens is after you clear the cache, if the first visit is mobile, the mobile site gets cached. Then subsequent desktop visits get the mobile site as well. Or vice versa if the first page view after the cache was cleared is from a desktop browser.AMTS (Any Mobile Theme Switcher) claims to have solved this issue, and after purchasing their pro version, i found out they have not, and the claim is a lie. I have even received a demo site from the plugin creator, and it has the exact same problem, see for yourself here:
https://projects.designerdady.com/dinesh_test
Proof in this screenshot. The three mobile browsers on the left (iOS, Android & Blackberry) all load the desktop site (albiet it is responsive, so it isn’t terrible, but it is not loading the correct theme!)
https://dl.dropboxusercontent.com/u/39497/Screen%20Shot%202013-08-09%20at%2012.40.58%20PM.pngThere is an old thread here that has long since been closed and become outdated, here:
https://www.ads-software.com/support/topic/w3-total-cache-switch-between-mobile-themes-and-desktopThe idea would work perfectly except w3 has changed a lot since then, and there is no functions.php file anymore.
Other solutions that i have found involve disabling page caching for mobile by adding a list of user agents to the rejected user agents box in w3 page caching settings. IMHO this is a stupid solution, because now we are just avoiding page caching and circumventing the awesomeness of w3! Furthermore this is mobile, which is already slow enough (slow mobile networks, etc), so we are just giving the mobile users a bad experience.
I’m getting really frustrated, i’ve been looking everywhere for a solution to this. Any advice would really be appreciated!
- The topic ‘W3 Total Cache & Mobile Theme Switching’ is closed to new replies.