Hi all,
I ran into an issue where WP-CLI was throwing a database/connection error.
To fix this, I added the following to wp-config.php:
if ( defined('WP_CLI') && WP_CLI ) {
define('WP_REDIS_DISABLED', true);
}
This fixes WP-CLI.
However, after adding this, the WordPress auto-login from the Enhance dashboard no longer works.
It seems the login command relies on WP-CLI loading normally, but disabling Redis for WP-CLI breaks that flow.
Has anyone found a clean way to:
Disable Redis only for direct WP-CLI usage over SSH,
While still allowing Enhance dashboard auto-login to work?
Thanks in advance.