WP Super Cache and WPTouch
-
WP Super Cache (WSC) supports mobile devices but it is a headache to make it work properly.
In my case, I use WPTouch. It appears that when WSC detects a mobile device, it will pass the request to WPTouch to render it and saves the content in index-mobile.html file. When another mobile user comes, the index-mobile.html will be served to the user.
Problem arises if users want to switch the WPTouch to view the full site. WPTouch includes a mode switcher in the footer. The problem is even if the user is able to switch it to the full site, WSC saves that full site as index-mobile.html. When next mobile visitor comes, he/she is served with the cached full site that is saved in index-mobile.html!!
Unless you want to disable the mobile/normal mode switch in WPTouch, which is not a good idea, mobile users will be shown with inconsistent content formats.
The only way to fix this seems to be disable caching for mobile users all together. However this cannot not done by turning off mobile user support in WSC. Doing so will make WPTouch useless.
I’d like to suggest the plugin author to add an option to not cache at all for mobile users but makes sure WSC hands off to WPTouch nicely.
- The topic ‘WP Super Cache and WPTouch’ is closed to new replies.