Skip to content

Commit

Permalink
Update object-cache.php
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Reynolds <chris@jazzsequence.com>
  • Loading branch information
pwtyler and jazzsequence authored Oct 30, 2024
1 parent cd4b5ee commit bd38626
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() {
if ( ! class_exists( WP_REDIS_USE_RELAY ? 'Relay\Relay' : 'Redis' ) ) {
$has_relay = defined( '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.';
}
return true;
Expand Down

0 comments on commit bd38626

Please sign in to comment.