WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: WP Super Cache] Mobile caching suggestion (3 posts)

  1. bigsite
    Member
    Posted 3 years ago #

    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.

  2. Donncha O Caoimh
    Member
    Posted 3 years ago #

    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.

  3. bigsite
    Member
    Posted 3 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic