Support » Plugin: Redis Object Cache » How to check if working?

Viewing 15 replies - 1 through 15 (of 19 total)
  • Plugin Author Till Krüss

    (@tillkruess)

    You can try installing the “Debug Bar” plugin and see what and if WordPress caches anything.

    From the Debug Bar plugin it appears to be working but what I don’t understand is why there are no keys in the Redis database?

    Plugin Author Till Krüss

    (@tillkruess)

    Do you see “cache hits” in Debug Bar?

    Cache Status: Connected
    Cache Hits: 628
    Cache Misses: 23

    wp_:default:is_blog_installed – 0.01k
    wp_:options:notoptions – 0.15k
    wp_:options:alloptions – 30.23k
    wp_:options:uninstall_plugins – 0.22k
    wp_userlogins:bondimedical3 – 0.01k
    wp_users:1 – 0.38k
    wp_user_meta:1 – 5.17k
    wp_:transient:doing_cron – 0.04k
    wp_site-transient:update_plugins – 2.89k
    wp_site-transient:update_themes – 0.28k
    wp_site-transient:update_core – 0.81k
    wp_:counts:comments-0 – 0.15k
    wp_:plugins:plugins – 4.55k
    wp_site-transient:browser_a3baefe3e9ae991b41528d105521ff36 – 0.35k
    wp_:options:can_compress_scripts – 0.01k
    wp_:posts:2 – 3.07k
    wp_:counts:posts-post – 0.16k
    wp_:counts:posts-page – 0.16k
    wp_:themes:theme-07d5a14d5e4120cc5fc58d2361f7d19d – 1.10k
    wp_:themes:theme-48bfaaaae8416faac5238778a6dfc7eb – 0.62k
    wp_:comment:last_changed – 0.03k
    wp_:comment:get_comments:d9f740e06e968d5a4932df97da6dcab2:0.463561001471583949 – 0.06k
    wp_:transient:wpseo-dashboard-totals – 0.02k
    wp_:posts:191 – 0.77k

    Even if I “Disable Object Cache” in your plugin the cache hits still goes up?

    Plugin Author Till Krüss

    (@tillkruess)

    Looks like it’s working. Maybe your looking at the right server or database?

    Your plugin tells me which database I am using. The only conclusion I can come to is that it is not using Redis because the database is empty.

    Plugin Author Till Krüss

    (@tillkruess)

    Is the plugin activated, did you click “Active Object Cache” and does the dashboard say you’re connected?

    Yes. It says all that. I said that in my first post.

    Plugin Author Till Krüss

    (@tillkruess)

    Okay. I’m afraid I can’t help you any further without SSH access to your server. If you’re okay with that, drop me a line through my website.

    I have 8 databases so I would prefer if nobody was tinkering around with them. There are 4 Magento sites all of which Redis is working perfectly. You can simply tell me what commands you want to excute and I can do them for you.

    Plugin Author Till Krüss

    (@tillkruess)

    The plugin is apparently working flawless for 9,000+ installs. So in your case it’s either a technical problem that a developer can debug, or more likely it’s a configuration/usage issue.

    If you have the correct object-cache.php file in /wp-includes/ and the Debug Bar plugin show cache hits and the admin panel tell you the server is connected. You’re probably not looking at the right Redis database.

    If you are 101% certain the the configuration is correct and you’re looking at the right Redis database, then I’d suggest hiring a developer the manually debug the object-cache.php to see if keys are set and returned.

    If that’s not an option, I can add a debug tool to the next release, but that would take a week or longer.

    Isn’t object-cache.php supposed to be in /wp-content/ ?

    Your plugin says I am using database 8 and I select this in the Redis command line and when I search for keys it says its empty.

    If you could add a debug tool I would appreciate the effort.

    Thank you.

    Let me know when it is done.

    Plugin Author Till Krüss

    (@tillkruess)

    Yes, clicking “Enable Object Cache” will copy the plugin’s object-cache.php file to /wp-content/ is that happening?

    Another issue could be that your installation is flushing the cache wp_flush_cache() on every request, that’s why your Redis database is empty.

    Plugin Author Till Krüss

    (@tillkruess)

    You can copy this plugin into the /wp-contents/mu-plugins folder and open up Debug Bar to see if Redis is working properly.

    https://gist.github.com/tillkruss/b2ca21f79a14cd900e4b3b282eaf3447

    Deleting test key…
    Test key deleted!
    Storing test key…
    Looking up test key…
    Test key found!
    Deleting test key…

    These are the results but I still don’t understand why the database has no keys in it?

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘How to check if working?’ is closed to new replies.