Support » Plugin: WP Super Cache » [Plugin: WP Super Cache] Don't cache mobile view

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Donncha O Caoimh


    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.



    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?

    Plugin Author Donncha O Caoimh


    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!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: WP Super Cache] Don't cache mobile view’ is closed to new replies.