• Hi,

    I’m using w3 Total Cache v. 0.9.4 and I’m trying to use the user agent groups in order to send different themes to desktop and mobile devices and to properly cache the two different versions. Now, themes work just fine. What does not work is the double caching.

    When I load a page with a smartphone I see that a new cache file gets created with the name of the smartphone user agent group (and that’s correct). If I then load the same page in a desktop browser, a new cache file gets created without any user agent group suffix. If I then reload the same page on the smartphone, I now get the desktop version (the cached file with no suffix), which is obviously wrong.

    Can anyone help me with this? Am I doing something wrong? I was using device theme switcher plugin before installing w3 Total Cache but using it together with total cache showed the same issue in fact smartphones were getting the cached versions for desktop. Any solutions?

    Thanks for your help! Andrea

    https://www.ads-software.com/plugins/w3-total-cache/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi, I am the author of Device Theme Switcher. Please have a look through this thread about the same topic: https://www.ads-software.com/support/topic/plugin-device-theme-switcher-wp-super-cache-support

    The issue is that these caching plugins are unable to properly cache two versions of your website (two themes) and server them back up. The *solution* is to completely disable caching for handheld/tablet devices.

    Thread Starter Madeincima

    (@madeincima)

    Hi James,

    If we use the following:

    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.

    We’re actually just telling w3 total cache not to cache the mobile version. It doesn’t tell it to don’t show the cached desktop version on mobile.. in fact, the mobile starts showing the desktop version as soon as the specific page gets cached. Hope this makes sense to you. How can I sort this out?

    Thanks, Andrea

    Thread Starter Madeincima

    (@madeincima)

    Anyone from w3 Total Cache plugin?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘User Agent Groups and mobile themes’ is closed to new replies.