• Donncha – We want to use a mobile theme but from what I can tell is that in order to do that we have to forgo caching for mobile users. Mobile is growing by leaps and bounds and I’ve read stories of people who had a mobile WP theme and had to disable the cache bypass during heavy loads in order to keep their servers up and running (i.e. there were enough mobile users out there to kill the server). It would be nice to have a mobile theme with a caching system.

    A simple solution for WP Super Cache could be to save a special cached version for mobile page views:

    some/path/index.html.mobi.html
    some/path/index.html.mobi.html.gz

    Or something similar. If you separate each browser type into simple (WAP) vs. webkit, something like this could be used:

    some/path/index.html.wap.html
    some/path/index.html.wap.html.gz
    some/path/index.html.webkit.html
    some/path/index.html.webkit.html.gz

    Then the rewrite rules for mobile sites could point at the correct cached files instead of simply bypassing the cache. All other browsers would get default cached files:

    some/path/index.html
    some/path/index.html.gz

    That should be pretty clear. But let me know if something above doesn’t make sense.

Viewing 2 replies - 1 through 2 (of 2 total)
  • I checked in code to create two or more separate supercache directories which would be useful in this case but it’s not polished enough. If you want to take a look at it grab the development version from the downloads page and look in wp-cache-phase1.php and see this thread.

    Thread Starter bigsite

    (@bigsite)

    Thanks. But I’m not particularly fond of that solution since it will create so many unnecessary directories.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: WP Super Cache] Mobile caching suggestion’ is closed to new replies.