• We’ve encountered an odd issue with w3 total cache and mobile theme switcher.

    Basically, when we enable total cache with mobile theme switcher enabled user’s on the desktop are redirected to the mobile theme.

    The solution we’ve found is to not cache the home page. We’ll dig more into the code at a later time.

    The reason we’re not using total cache’s user agent groups, is because we haven’t found a way to allow users to go to the full site from a mobile device. Is there a method we’ve missed? Has anyone else experienced a similar issue?

    http://wordpress.org/extend/plugins/w3-total-cache/

Viewing 2 replies - 1 through 2 (of 2 total)
  • uhmaster,

    Did you ever sort this out?. I am also experiencing this, if you or anyone can share some light on this issue I would greatly appreciate it.

    Thank you in advance.

    I have a solution that worked for me. I rolled my own theme switcher though, so your results may vary.

    In my theme switcher plugin, I detect if the user is on a mobile device, if so then I set a cookie and load the mobile theme. On mobile theme pages, I have a button that users can press to go to the full site. This button changes the cookie I set, and the theme switcher loads the full site theme when it sees that the cookie was changed to load the full site.

    To get this to work with w3 total cache, I used a setting in Performance > User Agent Groups. For the theme, I select — Pass Through — since I’m having the mobile theme switcher plugin decide which theme to load. Then in the user agents field, I add the mobile user agents.

    With this, I’m able to have cache on mobile and full site themes, and have mobile users go to the full site if they want.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘W3 Total Cache & Mobile Theme Switcher’ is closed to new replies.