WP Super Cache
Don't cache mobile view (4 posts)

  1. OC2PS
    Posted 4 years ago #

    Themes like Weaver II are not 100% compatible with WP Super Cache because due to mobile device complications, they require mobile views to not be cached, but Super Cache doesn't have an option to affect this.

    Please don;t cache mobile view.


  2. Donncha O Caoimh
    Plugin Author

    Posted 4 years ago #

    Those themes need to tell Supercache what user agents are mobile. They can do this with a Sueprcache plugin. Check out the dev version and look at wp-super-cache/plugins/wptouch.php for an example of code that supports the WP Touch plugin.


  3. OC2PS
    Posted 4 years ago #

    Donncha, don't you think it's a bit odd to ask all themes to create plugins for Super Cache? I mean surely, sooner rather than later most themes are likely to add support for mobile views (and tablet views)...

    Don't you think it would be better for Super Cache to provide easy hooks for themes to use to provide proper caching for themes. W3TC and Quick Cache seem to have anticipated this need, and have made it trivial to provide proper support.

    I think we should recognize that it will be critical to be able to tell a cache plugin about mobile agents, and to simply implement a filter used by the cache plugin to get those agents. Would be so great if we could have a common strategy among caching plugins to support this critical function.

    What do you think?

  4. Donncha O Caoimh
    Plugin Author

    Posted 4 years ago #

    There are hooks for Supercache too, but since the plugin loads before the theme or regular plugins load you need to write an extra chunk of code to tell the plugin what a mobile user agent is.

    I'll try to find time to find out what those other plugins do, but please feel free to check them yourself and send me a patch for Supercache!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Super Cache
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic