Hi,
I’m not sure if this is an issue that happens with anyone else, but whenever I use a cache (whether it’s server-side caching or via the WP Super Cache WordPress plugin) the mobile theme works intermittently, meaning that sometimes it loads and sometimes it doesn’t, and when it doesn’t, it falls back on the “responsive” theme. If I turn the cache off, the mobile theme loads fine on every single pageload with no issues.
At the current moment I have the cache turned off (which is why if you go to our site you will see the mobile version instead of the responsive version) however this is not ideal, as we are currently experiencing a massive traffic spike and it’s slowing the server down.
There’s a VERY specific reason why I do not want to use the responsive theme on mobile. It has a lot to do with this: http://petapixel.com/2016/02/07/readers-reporting-auto-redirecting-ads-on-mobile/. Even though they’re hidden visually, the codes for our desktop ads still load on mobile devices, which causes the redirect issue.
Is there something within the Mobile theme or plugin that can be “switched off” so that it doesn’t cause the mobile theme hiccups when a caching system is in use?
– Dustin
Yep. Same here. wp-super-cache serves up the desktop theme to mobile users unles they are looged in, in which case it’s bypass know users option kick in. The inability to use widgets or shortcode embeds was the final show stopper for me as I use Social Login which requires those features. Short story – mobile theme won’t allow users to login with Facebook, Twitter etc.
-
This reply was modified 9 years by
RochdaleHerald.
Hi RochdaleHerald,
For us, this happens whether anyone is logged in or not. Very annoying. Glad to know we’re not alone with this particular issue though. I tried to search for threads before posting this and didn’t come across anything so I was beginning to worry that we were the only ones having these problems.
– Dustin
Hello,
This is a wp super cache compatibility issue between the plugin and the latest vertsion of WP. This happnes even with the jetpack mobile thee. It a plugin issue, not a theme related issue. We have found a solution for it however until the plugin authors decide to update it. It is a simple one line o code solution:
https://github.com/Automattic/wp-super-cache/issues/132
http://screencast.com/t/YLN48vYD0r9
Thank you!
Hi Bogdan,
At this point, we’re getting so much traffic that the WP Super Cache plugin can’t handle it, so we’ve had to move to serverside caching, where everything is handled on the server before being sent to WP. I tried using WP Super Cache plugin but with us getting anywhere from 10,000 – 20,000 pageviews PER HOUR at the moment, it just can’t handle the load. So we have NO CHOICE but to use serverside caching.
I say all of this to say, that “fix” unfortunately won’t work for me because I’m currently not utilizing WP Super Cache. Also, I’m not using the latest version of WP — I’m on 4.5.3 because I tend to wait until all bugs are worked out before upgrading. I upgraded to the latest version the day it came out one time and it took my site down for an entire week because of ONE line of bad code from WP developers.
So is there anything else I can do to make sure mobile pages load on EVERY page load?
– Dustin
Hello Dustin,
Sorry but apart from the super cache issue, we have no such reports of the mobile theme behaving like that.
We only tested our mobile theme with wp super cache so I cannot say for sure if your caching solution work with our theme or not, We can only recommend what we have tested.
You can also try to disable all plugins except visual composer, clear cache and reset cdn files in order to rule out a plugin conflict. We do not know of any other solution as we only identified wp super cache to cause this for the moment. Try your caching solution on another wp install. Create a sub-domain with the same settings as your main site and do not install the theme. Leave just a wp default theme and try the jetpack mobile theme solution. WP super cache also affected the mobile theme from jetpack, not just the one from our theme. This way you can figure out if the problem is caching related or theme related. (our mobile theme only behaved like this with wp super cache so I think it;s safe to assume it’s your caching solution causing it)
Thank you!