From f2f14f4b9162ee75ee5ef5af49ca26d4941b266f Mon Sep 17 00:00:00 2001 From: Damian Zabawa Date: Tue, 29 Dec 2020 12:12:49 +0100 Subject: [PATCH 1/2] EZP-32254: [platform.sh] http cache purge type disabled during deploy EZP-32254: [platform.sh] http cache purge type disabled during deploy --- .../bundle/DependencyInjection/EzPlatformCoreExtension.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/EzPlatformCoreBundle/bundle/DependencyInjection/EzPlatformCoreExtension.php b/src/EzPlatformCoreBundle/bundle/DependencyInjection/EzPlatformCoreExtension.php index 184ac21..344d729 100644 --- a/src/EzPlatformCoreBundle/bundle/DependencyInjection/EzPlatformCoreExtension.php +++ b/src/EzPlatformCoreBundle/bundle/DependencyInjection/EzPlatformCoreExtension.php @@ -318,7 +318,7 @@ private function configurePlatformShSetup(ContainerBuilder $container): void } } - if ($route !== null) { + if ($route !== null && !($_SERVER['PLATFORMSH_DISABLE_HTTPCACHE_PURGE'] ?? false)) { $purgeServer = rtrim($route, '/'); if (($_SERVER['HTTPCACHE_USERNAME'] ?? false) && ($_SERVER['HTTPCACHE_PASSWORD'] ?? false)) { $domain = parse_url($purgeServer, PHP_URL_HOST); From 5e353e4db6fe4362129c5f01c7888c1356497cb8 Mon Sep 17 00:00:00 2001 From: Damian Zabawa Date: Tue, 29 Dec 2020 12:18:40 +0100 Subject: [PATCH 2/2] Fixed env name --- .../bundle/DependencyInjection/EzPlatformCoreExtension.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/EzPlatformCoreBundle/bundle/DependencyInjection/EzPlatformCoreExtension.php b/src/EzPlatformCoreBundle/bundle/DependencyInjection/EzPlatformCoreExtension.php index 344d729..ce90230 100644 --- a/src/EzPlatformCoreBundle/bundle/DependencyInjection/EzPlatformCoreExtension.php +++ b/src/EzPlatformCoreBundle/bundle/DependencyInjection/EzPlatformCoreExtension.php @@ -318,7 +318,7 @@ private function configurePlatformShSetup(ContainerBuilder $container): void } } - if ($route !== null && !($_SERVER['PLATFORMSH_DISABLE_HTTPCACHE_PURGE'] ?? false)) { + if ($route !== null && !($_SERVER['PLATFORMSH_SKIP_HTTPCACHE_PURGE'] ?? false)) { $purgeServer = rtrim($route, '/'); if (($_SERVER['HTTPCACHE_USERNAME'] ?? false) && ($_SERVER['HTTPCACHE_PASSWORD'] ?? false)) { $domain = parse_url($purgeServer, PHP_URL_HOST);