• Resolved blueskypartners

    (@blueskypartners)


    Hello,

    I’ve been playing with a number of caching plugins and I have to say, your plugin is easy to configure and works great!

    But unfortunately, I’m unable to use it because of the way I am handling mobile and I’m wondering if you could either add support or advise me of anyway to handle it.

    I serve both my desktop and mobile version using the same address but I use Widget Logic (https://ww.wp.xz.cn/plugins/widget-logic/) that allows me to add conditional logic to my widgets which control my main page content as well as all the widgets in the sidebars, footers, etc. For example, in the widget that display my home page content for desktop, I use the Widget Logic setting of !wpmd_is_phone() and have another widget setup with wpmd_is_phone() to display on mobile.

    If you add support, the ideal solution would be to allow for Mobile Widget Logic conditional logic to be entered in your settings like “wpmd_is_phone()” that would be evaluated and if true, the cache page would be stored in a separate cache than the desktop version. The same would happen when retrieving the cache.

    Any thoughts and/or assistance would be greatly appreciated.

    Thanks,
    Jon

    https://ww.wp.xz.cn/plugins/gator-cache/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter blueskypartners

    (@blueskypartners)

    Oh, I forgot that I’m using WP Mobile Detect (https://ww.wp.xz.cn/plugins/wp-mobile-detect/) along with Widget Logic. WP Mobile Detect is what makes wpmd_is_phone a conditional.

    Another option would be what I’ve seen in some other caching plugins where a separate cache is maintained based on user-agent.

    Thanks,
    Jon

    Plugin Author GatorDog

    (@gatordog)

    This is how the current support for JetPackMobile is handled. There is separate cache directory for the mobile version. The same type of caching could be employed using the mobile-detect class in the WP Mobile Detect plugin. With this class however, you can further discern whether the mobile is phone or tablet, so I imagine if there were different content / layout for those that they, too, would have to be in separate caches.

    Plugin Author GatorDog

    (@gatordog)

    The support for WP Mobile Detect has been added with the latest version 2.0.11 that was just released. It allows you to specify separate mobile caches down to device type and os.

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

The topic ‘Support for Mobile using Widget Logic’ is closed to new replies.