Forums

[Plugin: WP Super Cache] 0.9.6.1 no longer caching after 2.8.4 update (13 posts)

  1. pagameba
    Member
    Posted 2 years ago #

    It is definitely processing, but it doesn't actually cache the pages

    <!-- Dynamic page generated in 0.444 seconds. -->
    <!-- Cached page generated by WP-Super-Cache on 2009-09-15 13:12:53 -->

    Tried uninstalling and reinstalling, no change. Tried half on, no joy.

    Any ideas how to go about troubleshooting this?

  2. Donncha O Caoimh
    Member
    Posted 2 years ago #

    Try the development version on the download page and recreate the .htaccess rules. Does that help?

  3. Chris Wadge
    Member
    Posted 2 years ago #

    Hey Donncha, I can repro this issue, and it looks like your own blog is having the same issue. If you refresh the page and look at the supercache footer, it's always dynamic and in the present tense.

  4. Donncha O Caoimh
    Member
    Posted 2 years ago #

    Odd, I tried on logged out and in browsers and both showed cached pages on my blog. The timestamp didn't change.

  5. Chris Wadge
    Member
    Posted 2 years ago #

    Hi Donncha, Thanks for the quick response as usual. This is from your blog; I viewed the page source:

    <!-- Dynamic page generated in 0.461 seconds. -->
    <!-- Cached page generated by WP-Super-Cache on 2009-09-18 18:18:24 -->

    ...then refreshed the page and looked again:

    <!-- Dynamic page generated in 0.467 seconds. -->
    <!-- Cached page generated by WP-Super-Cache on 2009-09-18 18:18:48 -->

    Not sure if this is relevant, but this is via Firefox 3.5.3.

  6. Chris Wadge
    Member
    Posted 2 years ago #

    Aha! Yes, apparently it is very relevant. This is the same page viewed again in Chrome:

    <!-- Dynamic page generated in 0.467 seconds. -->
    <!-- Cached page generated by WP-Super-Cache on 2009-09-18 18:18:48 -->
    <!-- Compression = gzip -->

    You can see it has the same timestamp as the last time I hit it with FF 3.5.3 above. Seems FF 3.5.3 might be causing WP Super Cache to recreate the cache on each hit.

  7. Donncha O Caoimh
    Member
    Posted 2 years ago #

    I saw the same thing, but I found that deleting all the cookies for my domain fixed it. One of those cookies was being caught by the .htaccess rules. I should have deleted them one-by-on to test though!

  8. Donncha O Caoimh
    Member
    Posted 2 years ago #

    It's the wordpress_test_cookie :) Do you have that for my blog? Did you try logging into my blog at any time? ;)

  9. Donncha O Caoimh
    Member
    Posted 2 years ago #

    Open wp-cache-phase1.php and look for the function wp_cache_get_cookies_values()
    There's a line with the text " && $_COOKIE[ $key ] != 'WP Cookie check'", remove that text. We don't want to test for that cookie value as the .htaccess rules aren't smart enough to ignore it.
    Save your file and everything should cache again! It'll be wp-cached but that's still 99% as fast as supercache most of the time.

  10. cwadge
    Member
    Posted 2 years ago #

    OK, thanks for the pointer. I'll test this on some of my auxiliary sites immediately. Something kind of puzzles me though. Being a cookie issue makes sense to me, but on some sites I'm actually able to reproduce it with curl... any thoughts on that?

  11. Chris Wadge
    Member
    Posted 2 years ago #

    Yeah, that cookie fix seems to have done it. You're the man.

  12. toncet
    Member
    Posted 2 years ago #

    Yup now it's working on 2.8.4.. good job and thank you very much

  13. cactuscarl
    Member
    Posted 2 years ago #

    Strange, when I comment out that portion of the code and cleared cache, i could no longer access my dashboard. After I put it back, I was able to get back in. Overall my site seems quicker. Time will tell I guess.

Topic Closed

This topic has been closed to new replies.

About this Topic