Support » Plugins » WP Super Cache, Always Regenerating File, Cache File Location Mismatch?

  • I am trying to get WP Super Cache working on my blog. The plug-in appears to be functioning, except that it seems to regenerate and recache the page for every request.

    In wp-cache-phase1.php, $cache_filename is set to “wp-cache-ccd3f505f293220f74b944e5eb1561c7.html” and $blog_cache_dir is set to “/Library/WebServer/Documents/virtualsanity/wp-content/cache/”. Since there is no file at “/Library/WebServer/Documents/virtualsanity/wp-content/cache/wp-cache-ccd3f505f293220f74b944e5eb1561c7.html”, the plug-in believes there is no cached file and therefore it needs to regenerate that file.

    When the plug-in does generate the file, it puts a cached file at “/Library/WebServer/Documents/virtualsanity/wp-content/cache/supercache/www.virtualsanity.com/index.html”.

    The debug output (with some debug statements that I added) looks like this:

    15:40:51 / init -- cache_file: , blog_cache_dir: /Library/WebServer/Documents/virtualsanity/wp-content/cache/, cache_filename: wp-cache-bb7c2144013e18a26f1b49d43afa5963.html
    15:40:51 / No wp-cache file exists. Must generate a new one.  -->
    15:40:51 / init -- cache_file: , blog_cache_dir: /Library/WebServer/Documents/virtualsanity/wp-content/cache/, cache_filename: wp-cache-bb7c2144013e18a26f1b49d43afa5963.html
    15:40:51 / In WP Cache Phase 2
    10:40:51 / Setting up WordPress actions
    10:40:51 / Created output buffer
    10:40:51 / Output buffer callback
    10:40:51 / supercache dir: /Library/WebServer/Documents/virtualsanity/wp-content/cache/supercache/www.virtualsanity.com/
    10:40:51 / Anonymous user detected. Only creating Supercache file.
    10:40:51 / Sending buffer to browser

    It looks to me like the supercache file is being generated, the non-supercache cache file is not being generated (which is fine), but that the non-supercache file is being used to determine if we already have a cached copy of this file.

    Is there a bug here or do I have something misconfigured? Any help would be appreciated.

    Thanks.

    John

Viewing 3 replies - 1 through 3 (of 3 total)
  • If the supercache file is generated correctly but not served subsequently, check your .htaccess. The mod_rewrite rules there serve the file.

    Thread Starter John Brayton

    (@jbrayton)

    That was the problem. Thanks.

    Hi there!

    I have the exact thing, I also placed an extra debug variable and saw the same issue. A lot has said bout the .htaccess and I have tried for days to correct it. What did you changed in .htaccess John?

    Andre.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WP Super Cache, Always Regenerating File, Cache File Location Mismatch?’ is closed to new replies.