• Hello all,

    What I need is to disable WP Super Cache for Mobile users.

    Because I have a responsive theme (so I don’t want to use plugin theme) and my content is different for desktop and mobile users. Desktop users should be delivered a page, mobile users should be delivered a different page.

    With WP Super Cache the mobile users get a desktop cached page… so I have to disable WP Super Cache for mobile (and leave it for desktop only that will cache desktop pages and deliver to desktop users) and install a different cache for mobile (that will cache the mobile pages and deliver to mobile users). Is anyone here having a solution for this?

    Please help me with this as it is incredibly frustrating. Working last 2 days on this and I cannot believe I haven’t found an workaround yet.

    Thank you a lot

    https://wordpress.org/plugins/wp-super-cache/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter LSOID

    (@lsoid)

    To put it in fewer words:

    1. Need to disable wp super cache for mobile. So that it doesn’t deliver desktop cached pages to mobile users.
    2. Need to set up mobile cache (this is a responsive theme already so I don’t need to use WPTouch or any other plugin for mobile theme)

    Thank you

    Thread Starter LSOID

    (@lsoid)

    I would choose not to disable WP Super cache but I don’t see any other solution.

    WP Super Cache is truly the best caching solution ever, I just can’t make it work to cache separate page for mobile.

    So that’s why I want it to disable for mobile. But if anyone knows how to make it cache different pages for mobile it would be great…

    Thank you

    optimized-marketing

    (@optimized-marketingcom)

    have you tried the enabling of Mobile support instead of totally turning it off?

    We have a similar situation and we solved it by turning on the “Mobile device support” option. It actually caches two different versions of the page, one for Mobile and one for desktop. It does it based on user agent so if the person views the page using a mobile user agent(mobile device) it will display the mobile cached file which contains the mobile specific content.

    But this plugin can cache both mobile and desktop pages separately and devlier them to the correct place. I would suggest using Php mode for caching though.

    The issue might be coming from how your theme detects it is mobile and displaying the mobile content.

    Thread Starter LSOID

    (@lsoid)

    Ok, thanks for the input.

    When I clear cache and open from mobile then the mobile responsive page shows (with mobile content, as it should). Once I open the page on desktop, it caches it and then I refresh on mobile… and get the desktop version. So this makes me think the mobile detection of theme is fine.

    I did tried multiple tests with “Mobile device support” activated and not activated, both options act the same way. Don’t know why, I don’t use any plugin like WPTouch so that function should not work at all anyway.

    My theme is already responsive so that’s why I don’t use any plugins such as WPTouch. I’m trying to figure out how to make WP Super Cache stop it’s functioning on mobile (both not cache, and not deliver cached to mobile users) and then I must install some separate cache function for mobile only.

    So I use WP Super Cache for desktop/tablet, and other cache technology for mobile. I’m not a very experience programmer at all, so I don’t have much of an idea on how to do this.

    Will further look into it.

    Thank you once again

    [ No bumping please. ]

    optimized-marketing

    (@optimized-marketingcom)

    Did you check to see if there were two different files created for the cache of a page. one for mobile and one for dekstop?

    To check you have to go to contents tab and regenerate the list of cached pages, then you view the list, you should see two files for each page. ex. domain.com/ and domain.com/index-mobile.html. That will tell you if super cache is actually caching a mobile and desktop version of the pages.

    You don’t have to be using WPtouch or any mobile specific theme for that option to work. You can have a responsive theme with pages that have different desktop and mobile content. The mobile caching option works in a way that if you have one url that displays different content based on device it will create two cached files.

    During our testing we noticed if you are doing certain types of redirects for mobile devices to display the correct content then caching can have some issues. Issues like it overwriting the mobile cahced file with desktop content. This also might occur on pages that use the same url but switch the content to late during the page creation process.

    I am not sure if you have any parameter or anything that indicates it is a mobile pages. like ?mobile=yes or /mobile/mypage. If so there might be a way to tell the caching plugin not to cache pages like that.

    Hi LSOID,

    I am also having same kind of problem. Did you able to figure out the soltion?

    Even I have responsive theme and I don’t want to use any WpTouch or other plugin.

    I just want 2 different HTMLs to be served by WP Super Cache plugin one for Mobile & another for desktop

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Disable WP Super Cache on Mobile’ is closed to new replies.