/** @var HttpCache $httpCache */
$httpCache =
$this->
get('httpcache'
);
/** @var Store $store */
$store =
$httpCache->
getStore();
if (!
$cacheId) { return $store->
purgeAll();
} return $store->
purgeByHeader('x-shopware-cache-id',
$cacheId);
} /**
* Adds HTTP headers to specify that the Response needs to be parsed for ESI.
*
* This method only adds an ESI HTTP header if the Response has some ESI tags.
*
* @param Response $response A Response instance
*/
private function addSurrogateControl(Response
$response): void
{