WordPress.org

Ready to get started?Download WordPress

Forums

Device Theme Switcher
[resolved] Wp Super Cache support (10 posts)

  1. Skaffawebb
    Member
    Posted 2 years ago #

    Are there any support for WP super cache or will it send the desktop version to mobile users and vice versa?

    Regards

    http://wordpress.org/extend/plugins/device-theme-switcher/

  2. Trevor Gehman
    Member
    Posted 2 years ago #

    I have the same question...

  3. James Mehorter
    Member
    Plugin Author

    Posted 2 years ago #

    Currently, Device Theme Switcher works with W3 Total Cache using the default settings of w3tc. I've received a number of requests to get the plugin working with WP Super Cache as well, and it's something I'll be looking into further. At this time I can only recommend using w3tc with it's default settings. I'll post back when we're able to release an updated version of DTS with WP Super Cache.

  4. Trevor Gehman
    Member
    Posted 2 years ago #

    Okay, it seems to work with WP Super Cache if I do the following:

    1) Use legacy mode in WP Super Cache.
    2) Add all mobile user agents (iPhone, Android, Blackberry, etc.) to "Rejected User Agents" list.
    3) Disable caching for the mobile theme by adding define('DONOTCACHEPAGE','true'); to functions.php.

    That's what I've done so far and it appears to work.... Step 3 might not be necessary, but I've done it just to be safe.

    Are the default settings of W3TC better than these WP Super Cache settings?

  5. pixelkicks
    Member
    Posted 1 year ago #

    Hi James,

    Is there any update on the compatibility with WP Super Cache? I quite like the look of your plugin and am considering using it over WordPress Mobile Pack.

    Would be great if it worked with WPSC.

    Thanks,

    Chris.

  6. James Mehorter
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Chris,

    Device Theme Switcher does work with WPSC. Tevor's post above details the WPSC settings he used. I would recommend following his steps. Let me know if you run into issues doing so.

    The define() bit is the important part, which keeps WPSC from caching the mobile theme. This is something that is best done in the theme, and not in Device Theme Switcher.

    Thanks

    James

  7. pixelkicks
    Member
    Posted 1 year ago #

    Thanks for that James, I'll take a look and let you know how I get on.

    Cheers for repyling.

  8. pixelkicks
    Member
    Posted 1 year ago #

    Further to this, do we need to enable Legacy Caching? If so then its not really an option, as I don't want the overall speed of my site to be affected.

    Chris.

  9. awb9h
    Member
    Posted 1 year ago #

    Is there an update for compatibility of Device Theme Switcher with Super Cache? The only 'solution' offered so far is to basically turn off Super Cache on mobile themes, which isn't viable solution in the long term.

  10. James Mehorter
    Member
    Plugin Author

    Posted 1 year ago #

    Hi awb9h,

    Unfortunately, no. Any of those caching plugins are only capable of caching one version of the website, based on your theme. Since you're now dealing with two themes, only one version can be cached. There isn't anything in DTS that could be changed to 'fix' this. I've spoken with a few of the guys at those various plugins and they're the ones who recommended disabling caching for mobile users. I'd be open to trying something to work around this - but it's an inherit problem in the caching plugins, and something I have no control over. Sorry :(

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic