WordPress.org

Ready to get started?Download WordPress

Forums

WP Mobile Detect
Problem with WP Super Cache (3 posts)

  1. sibarita
    Member
    Posted 1 year ago #

    I was trying to use your plugin but this other plugin:

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

    Does not work properly Super Cache "cache" for example, the value of wpmd_is_android(). How would you solve?

    Thank you!

    http://wordpress.org/extend/plugins/wp-mobile-detect/

  2. pako69
    Member
    Posted 4 months ago #

    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...

  3. pako69
    Member
    Posted 4 months ago #

    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...)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.