Support » Plugin: WP Super Cache » [Plugin: WP Super Cache] Two domains, one cache update

  • I’m running http://www.site.com and m.site.com those who visit m. get the mobile theme and wordpress produces links all to m. via all the function calls.
    What I’ve found is that if user A visits an article on the mobile site a copy is cached in a directory called /wp-content/cache/supercache/m.site.com/, user B comes along to the full site and another copy is caches in a directory called /wp-content/cache/supercache/www.site.com/, user C arrives at the full site they get served the cache, after reading they leave a comment. Super cache removes the file in the http://www.site.com folder as it knows this is now out of date. B returns to the article a new copy is created with the comment and cached, however when A returns to the mobile site there is nothing new.

    The same also happens in reverse with comments left on the mobile version not appearing in the full version.

    The other big problem is that new articles tend not to appear on the mobile homepage, probably because when the wp-cron is run, it’s against www (at the moment the mobile home has DONOTCACHEPAGE set)

    I’m sure there are other options, but I’m happy to have a custom plugin which says to super cache, oh you are running a clean up on http://www.site.com, whilst you are there can you also do m.site.com where both www and m are hardcoded in to the plugin.
    What hooks am I looking at?

    (Note mobile support is turned off as I want the mobile users to get cached copies, not to generate live ones each time)

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter artesea

    (@artesea)

    still have the issue, and I’m sure the answer is just a couple of lines of code, just not sure where to start.

    Thread Starter artesea

    (@artesea)

    Been looking at the code and can’t find any obvious hooks to run against. Still getting complaints from my users that comments are missing on the mobile version.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: WP Super Cache] Two domains, one cache update’ is closed to new replies.