-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add basic info to WordPress' health check screen #353
base: main
Are you sure you want to change the base?
Conversation
Thanks! I think this is an important feature even for Pantheon users. |
This code apparently has some problems when connecting to a Redis 6 instance. I'm doing some digging into it as this would be helpful to have somewhere in the Dashboard. |
Actually, I was having issues locally with the Redis 6 Docker image and I determined that I needed to set the password in the |
Resurrecting this. Tracking internally as CMSP-344. Tentatively looks good but since Behat tests are failing, I'd like to pull it down and test it before we merge. |
7be9fc3
to
2b5e0c5
Compare
Just noting that I created a MU Plugin for our agency to use on our sites to provide site health for Redis when using this plugin. https://gist.github.com/timnolte/d295f24457698f65f00d301074494394 |
Thanks for sharing the gist @timnolte! |
It would be nice if the 'redis_version' => $info['redis_version'],
'redis_mode' => $info['redis_mode'],
'maxclients' => $info['maxclients'],
'connected_clients' => $info['connected_clients'], |
I've updated this Gist to leverage some better error handling as well as incorporate changes in a patch to 1.4.2 I made here(https://gist.github.com/timnolte/267e2a502f05156c0fe2a0d7028c2854) that includes the |
Since there's a wp-cli command to display some basic Redis info, why not make it available in WordPress' own health check interface?
This is the "I banged it out in like half an hour" version, feel free to completely rewrite it, put this code somewhere else. Think of it as a starting point more than anything else.