Skip to content

Commit

Permalink
Update CacheManager.php
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszuznanski authored Jan 19, 2022
1 parent 13e7621 commit cf989b8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Classes/CacheManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ protected function getCurlHandleForCacheClearingAsTag(string $tag, string $varni
{
$this->logger->debug('getCurlHandleForCacheClearing: ' . $tag);

return $this->createCurlHandle($varnishUrl, 'X-Tags: ' . $tag);
return $this->createCurlHandle($varnishUrl, 'X-Tags: ' . $tag, 'BAN');
}

/**
Expand All @@ -269,9 +269,9 @@ protected function getCurlHandleForSoftCacheClearingAsTag(array $tags, string $v

$this->logger->debug('getCurlHandleForCacheClearing: ' . $combinedTags);

$header = 'ykey-purge: ' . $combinedTags;
$header = 'X-Tags: ' . $combinedTags;

return $this->createCurlHandle($varnishUrl, $header, 'PURGE');
return $this->createCurlHandle($varnishUrl, $header, 'BAN');
}

/**
Expand Down

0 comments on commit cf989b8

Please sign in to comment.