• Resolved aion7

    (@aion7)


    Hi there,

    Currently when Caching is enabled, our website displays the desktop theme on mobile and ultimately really messes up. (We have a separate mobile theme)

    As a result, we have had to enable the proxy cache purge development mode to stop caching to keep our theme intact. Our theme is Newspaper 12.

    Are there any fixes behind this? We really need to get our cached content working with the recent Helpful Content Update to continue to place high in SERPs. Thank you!

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Did you enable mobile support in the plugin? Unfortunately it’s based on very old code, before WordPress did mobile client detection, so it might work slightly differently.

    The first thing I’d try is enabling debug logging, and look at the debug log when a mobile client visits the site, and add some logging on your mobile client detection code. Just make sure they match. If they don’t, it’s likely that’s where the problem is.

    If you have Jetpack installed, make sure the Jetpack plugin is enabled in WP Super Cache. That will improve the mobile detection.

    You could also add a filter on “wp_cache_check_mobile” and return “mobile” when a mobile client is detected by your mobile theme. That will make sure the page is cached correctly.

    Plugin Support Alin (a11n)

    (@alinclamba)

    Hey @aion7,

    Do you have any updates on this based on what @donncha suggested previously?

    Thank you!

    We had the same problem with the TagDiv Newspaper theme. Fix for anyone looking as well: it was the “Jetpack Mobile Theme” option in WP Super Cache, tab “Plugins”. Thanks for the suggestion Donncha, but perhaps this option could also be pre-enabled, at least when problematic themes like this are detected?

    Thanks @anko96x. I think it might be time to redo how the plugin does mobile detection since it’s a lot better now than when it was added, many years ago.

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

The topic ‘Cache is Messing with website Theme’ is closed to new replies.