Skip to content

Commit

Permalink
Check WP_REDIS_USE_RELAY is true too
Browse files Browse the repository at this point in the history
  • Loading branch information
pwtyler committed Dec 6, 2024
1 parent a3281f8 commit 66189b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion object-cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -1226,7 +1226,8 @@ protected function _connect_redis() {
* not with a message describing the issue.
*/
public function check_client_dependencies() {
$has_relay = defined( 'WP_REDIS_USE_RELAY' ) && class_exists( 'Relay\Relay' );
$has_relay = defined( 'WP_REDIS_USE_RELAY' ) && WP_REDIS_USE_RELAY && class_exists( 'Relay\Relay' );

if ( ! $has_relay || ! class_exists( 'Redis' ) ) {
return 'Warning! PHPRedis extension is unavailable, which is required by WP Redis object cache.';
}
Expand Down

0 comments on commit 66189b3

Please sign in to comment.