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);