WordPress.org

Support

Support » Plugins and Hacks » WP Mobile Detect » Problem with WP Super Cache

Problem with WP Super Cache

Viewing 2 replies - 1 through 2 (of 2 total)
  • Same issue with Quick Cache Pro
    and same issue with other plugin like: ttp://wordpress.org/support/plugin/mobble
    and, again, same issue with native wordpress function: wp_is_mobile()

    I do not think the author of WP Mobile Detect and other like Mobble plugin can solve this issue, but, in my opinion, this issue have to be solved by cache plugin authors…

    I had a response from Quick Cache Pro:
    —-
    Quick Cache caches via PHP Output Buffering, which means that once a page is generated and cached, any PHP functions on that page will not be evaluated again until the cache is regenerated.

    You have two options here:

    1) You can exclude all mobile devices from being cached by creating a list of mobile device user agents and adding them to Dashboard -> Quick Cache -> User-Agent Exclusion Patterns. This will prevent any mobile devices from being cached and that will allow the Mobble functions to work as expected. Here’s a list of User-Agent Exclusion Pattens for most mobile devices:

    iPhone * Mobile
    iPod * Mobile
    Android * Mobile
    BB * Mobile Safari
    BlackBerry * Mobile Safari
    IEMobile/10.0 * Touch
    IEMobile/7.0
    IEMobile/9.0
    webOS

    2) You can ask the plugin developer to support Quick Cache using the Advanced Cache Plugin system provided by Quick Cache. This would allow Mobble to tell Quick Cache to generate separate caches for mobile devices.
    https://github.com/WebSharks/Quick-Cache/wiki/Plugin-Options#themeplugin-developers
    https://github.com/WebSharks/Quick-Cache/blob/000000-dev/quick-cache/includes/ac-plugin.example.php

    Solution 2 will be the best but I do not think WP Mobile Detect author have some times to do that… ?
    In the meantime i’m using solution 1 (no cache at all for mobile…)

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Problem with WP Super Cache’ is closed to new replies.
Skip to toolbar