From e18fa74921eea5a767826062c8059007a4334515 Mon Sep 17 00:00:00 2001 From: Damian Zabawa Date: Tue, 29 Dec 2020 12:27:18 +0100 Subject: [PATCH] EZP-32254: [platform.sh] http cache purge type disabled during deploy (#28) --- .../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..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) { + 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);