Support » Plugin: Redis Object Cache » Can’t login after enabling object cache

  • Resolved dcivera

    (@dcivera)


    Hello,

    For some reason. I can’t login into WordPress after I enable object caching and have to disable it.

    I don’t know if it’s related, but I can’t flush the cache once it’s enabled (get an error saying “Object cache could not be flushed.”)

    I tried wp cache flush and redis-cli flushall.

    I tried to disable all my plugin. I also didn’t find any errors in the Apache or redis-server logs.

    I noticed that the file object-cache.php doesn’t get created in /wp-content. I only have the advanced-cache.php

    Finally, here’s the result when I run diagnostic after enabling the cache. Thanks a lot for your help.

    Status: Connected
    Client: PhpRedis (v5.1.1)
    Drop-in: Valid
    Ping: 1
    Redis Extension: 5.1.1
    Predis Client: 1.1.1
    PHP Version: 7.4.3
    Redis Version: 5.0.7
    Multisite: No
    Global Prefix: "theprefix"
    Blog Prefix: "theprefix"
    WP_REDIS_DATABASE: 1
    WP_CACHE_KEY_SALT: "thesalt"
    WP_REDIS_PASSWORD: "****************************************************************"
    Global Groups: {
        "0": "blog-details",
        "1": "blog-id-cache",
        "2": "blog-lookup",
        "3": "global-posts",
        "4": "networks",
        "5": "rss",
        "6": "sites",
        "7": "site-details",
        "8": "site-lookup",
        "9": "site-options",
        "10": "site-transient",
        "11": "users",
        "12": "useremail",
        "13": "userlogins",
        "14": "usermeta",
        "15": "user_meta",
        "16": "userslugs",
        "33": "blog_meta"
    }
    Ignored Groups: [
        "counts",
        "plugins",
        "themes"
    ]
    Unflushable Groups: []
    Dropins: 
     - advanced-cache.php v by 
     - Redis Object Cache Drop-In v1.5.9 by Till Krüss
    Plugins: 
     - Akismet Anti-Spam v4.1.5 by Automattic (Active)
     - AMP v1.5.3 by AMP Project Contributors (Active)
     - Classic Editor v1.5 by WordPress Contributors (Active)
     - Convert Plus v3.5.8 by Brainstorm Force (Active)
     - Health Check & Troubleshooting v1.4.4 by The WordPress.org community (Active)
     - Hello Dolly v1.7.2 by Matt Mullenweg (Active)
     - Inactive Logout v1.9.5 by Deepen Bajracharya (Inactive)
     - Redis Object Cache v1.5.9 by Till Krüss (Active)
     - ShortPixel Image Optimizer v4.18.0 by ShortPixel (Inactive)
     - Simple History v2.33.2 by Pär Thernström (Active)
     - Slider Revolution v6.2.8 by ThemePunch (Active)
     - Supreme Shortcodes v2.0.1 by Supreme Factory (Active)
     - tagDiv Cloud Library v1.5 | built on 06.05.2020 14:38 by tagDiv (Active)
     - tagDiv Composer v2.6 | built on 06.05.2020 14:38 by tagDiv (Active)
     - tagDiv Mobile Theme v1.4 | built on 06.05.2020 14:38 by tagDiv (Active)
     - tagDiv Newsletter v1.5 | built on 06.05.2020 14:38 by tagDiv (Active)
     - tagDiv Social Counter v4.7 | built on 06.05.2020 14:38 by tagDiv (Active)
     - tagDiv Standard Pack v1.0 BETA | built on 06.05.2020 14:38 by tagDiv (Active)
     - Two Factor Authentication v1.7.2 by David Nutbourne + David Anderson, original plugin by Oskar Hane (Inactive)
     - WordPress RSS Feed Retriever v1.6.1 by Theme Mason (Active)
     - WPBakery Page Builder v6.2.0 by Michael M - WPBakery.com (Active)
     - WP fail2ban (Premium) v4.2.8 by Charles Lecklider (Active)
     - WP Rocket v3.5.5.1 by WP Media (Active)
     - WP Security Audit Log v4.0.3 by WP White Security (Active)
     - Yoast SEO v14.1 by Team Yoast (Active)
    
    • This topic was modified 1 week, 4 days ago by dcivera.
Viewing 7 replies - 16 through 22 (of 22 total)
  • Plugin Author Till Krüss

    (@tillkruess)

    You can try one more thing:

    
    wp transient delete --all
    wp cache flush
    

    And see if that resolves the login issue.

    Thanks again. Unfortunately, that didn’t work either.

    If it is the SSL, the silver lining is that once we go live, we’ll move the site to Cloudflare, get rid of the current certificate, and so I’m hoping that it will fix the issue. Otherwise, I have no idea how I’m going to do persistent object caching. I really wanted to use your plugin.

    Again, I really appreciated your help in this. I have to give you 5 stars just for sticking with this 🙂

    In case you have an epiphany, here’ the Apache log when I’m trying to login:

    
    MY_IP_ADDRESS - - [20/May/2020:19:15:02 -0400] "POST /wp-admin/admin-ajax.php HTTP/2.0" 200 418 "https://domain.tld/wp-login.php?redirect_to=https%3A%2F%2Fdomain.tld%2Fwp-admin%2F&reauth=1" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1 Safari/605.1.15"
    MY_IP_ADDRESS - - [20/May/2020:19:15:06 -0400] "POST /wp-login.php HTTP/2.0" 302 0 "https://domain.tld/wp-login.php?redirect_to=https%3A%2F%2Fdomain.tld%2Fwp-admin%2F&reauth=1" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1 Safari/605.1.15"
    MY_IP_ADDRESS - - [20/May/2020:19:15:06 -0400] "GET /wp-admin/ HTTP/2.0" 302 0 "https://domain.tld/wp-login.php?redirect_to=https%3A%2F%2Fdomain.tld%2Fwp-admin%2F&reauth=1" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1 Safari/605.1.15"
    MY_IP_ADDRESS - - [20/May/2020:19:15:07 -0400] "GET /wp-login.php?redirect_to=https%3A%2F%2Fdomain.tld%2Fwp-admin%2F&reauth=1 HTTP/2.0" 200 2054 "https://domain.tld/wp-login.php?redirect_to=https%3A%2F%2Fdomain.tld%2Fwp-admin%2F&reauth=1" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1 Safari/605.1.15"
    
    • This reply was modified 1 week, 1 day ago by dcivera.
    Plugin Author Till Krüss

    (@tillkruess)

    Can you post a screenshot of the Chrome network log after attempting to log in.

    That double 302 looks wrong.

    Here’s a link to the HAR file.

    https://share.getcloudapp.com/8LujzbyO

    I started recording just before entering the password and stop as soon as I’m back to the login screen again.

    I assumed the double 302 was because I have the 2FA plugin, so I enter the login/pass, then the one-time token. I had this plugin deactivated since starting this thread (even before actually). I just reactivated it now, because I’m pretty sure it’s not the reason for the issue.

    Plugin Author Till Krüss

    (@tillkruess)

    Shoot me an email at support |at| wprediscache |dot| com.

    Ok, Till solved the issue. I was using the rename-command feature to rename commands in /etc/redis and it was creating issues. Now, please note that this is really hard to detect because it doesn’t show up in the Redis error logs and WordPress doesn’t tell you squat.

    Thanks a million to Till. It’s no wonder his plugin is so popular. His support is really appreciated.

Viewing 7 replies - 16 through 22 (of 22 total)
  • You must be logged in to reply to this topic.