Skip to content

Commit

Permalink
EZP-32254: [platform.sh] http cache purge type disabled during deploy (
Browse files Browse the repository at this point in the history
  • Loading branch information
damianz5 authored Dec 29, 2020
1 parent d72861d commit e18fa74
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e18fa74

Please sign in to comment.