WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: WP Super Cache] A bug! (4 posts)

  1. zhouzb889
    Member
    Posted 4 years ago #

    I have checked "Don’t cache pages for logged in users."
    I just open wp-login.php and not logged success,that the page was no longer cached.

    I found that if I open wp-login.php ,wordpress will set a cookie wordpress_test_cookie.

    So the tule "RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress|wp-postpass_).*$" in .htaccess been match, so wp super cache misjudge me as logged-in user and not cache for me. Actually,I am not login.

    Sorry for my poor English.

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

  2. Doesn't work that way for me. The cookie is set, but I'm still not logged in and I still get the cache page.

    Upgrade your WordPress to 2.9.2 first, and what version of WP Super Cache are you using?

  3. Donncha O Caoimh
    Member
    Posted 4 years ago #

    You'll still get a half-on cached page. I've changed those rules back and forth several times. Each way has good and point points.

  4. kevin_linden
    Member
    Posted 3 years ago #

    I think the best solution for this is to add the following line to your wp-config file:

    define('TEST_COOKIE', 'wp_test_cookie');

    This -- by renaming the test cookie to a name that does not include the string "wordpress" -- will make it so Super Cache doesn't think you're logged in when you're logged out but on a login page.

    Works for me!

Topic Closed

This topic has been closed to new replies.

About this Topic