$result =
$this->
getStore()->
purgeByHeader('x-shopware-cache-id',
$cacheId);
} else { $result =
$this->
getStore()->
purgeAll();
} if ($result) { $response->
setStatusCode(Response::HTTP_OK, 'Banned'
);
} else { $response->
setStatusCode(Response::HTTP_OK, 'Not Banned'
);
} } elseif ($request->
getMethod() === 'PURGE'
) { if ($this->
getStore()->
purge($request->
getUri())) { $response->
setStatusCode(Response::HTTP_OK, 'Purged'
);
} else { $response->
setStatusCode(Response::HTTP_OK, 'Not purged'
);
} } return $response;
} /**
* Lookups a Response from the cache for the given Request.
*
* {@inheritdoc}
*
* @param bool $catch
*
* @return Response
*/