Skip to content

Commit cd92925

Browse files
committed
Varnish health check failing due to presence of id_prefix in env.php
1 parent f3d7a0d commit cd92925

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pub/health_check.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,10 @@
4343
$cacheConfigs = $deploymentConfig->get(ConfigOptionsListConstants::KEY_CACHE_FRONTEND);
4444
if ($cacheConfigs) {
4545
foreach ($cacheConfigs as $cacheConfig) {
46-
if (!isset($cacheConfig[ConfigOptionsListConstants::CONFIG_PATH_BACKEND]) ||
46+
// allow config if only available "id_prefix"
47+
if (count($cacheConfig) === 1 && isset($cacheConfig['id_prefix'])) {
48+
continue;
49+
} elseif (!isset($cacheConfig[ConfigOptionsListConstants::CONFIG_PATH_BACKEND]) ||
4750
!isset($cacheConfig[ConfigOptionsListConstants::CONFIG_PATH_BACKEND_OPTIONS])) {
4851
http_response_code(500);
4952
$logger->error("Cache configuration is invalid");

0 commit comments

Comments
 (0)