Skip to content

Commit 03d77bc

Browse files
Apply suggestions from code review
Co-authored-by: Phil Tyler <phil.tyler@pantheon.io>
1 parent 9633a17 commit 03d77bc

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

inc/site-health.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -933,16 +933,16 @@ function test_object_cache() {
933933
$service_level = _pantheon_get_header( 'Pcontext-Service-Level' );
934934
$redis_unavailable = [ 'basic', 'basic_small' ];
935935

936-
// If we can't find a service level or cache host, bail early.
936+
// If we can't find a service level nor cache host, bail early.
937937
if ( ! $service_level && ! $cache_host ) {
938938
return [];
939939
}
940940

941941
/**
942-
* If Redis is unavailable and the service level is basic, we cannot use
942+
* If the service level is basic, we cannot use
943943
* Redis. Bail early, this test is not helpful.
944944
*/
945-
if ( ! $cache_host && in_array( $service_level, $redis_unavailable, true ) ) {
945+
if ( in_array( $service_level, $redis_unavailable, true ) ) {
946946
return [];
947947
}
948948

0 commit comments

Comments
 (0)