eZ\Publish\Core\MVC\Symfony\Cache\Http\SignalSlot\DeleteLocationSlot::purgeHttpCache PHP Method

purgeHttpCache() protected method

Purges relevant location cache.
protected purgeHttpCache ( eZ\Publish\Core\SignalSlot\Signal $signal ) : mixed
$signal eZ\Publish\Core\SignalSlot\Signal
return mixed
    protected function purgeHttpCache(Signal $signal)
    {
        try {
            $locationIds = $this->extractLocationIds($signal);
            return $this->httpCacheClearer->purgeForContent($this->extractContentId($signal), $locationIds);
        } catch (NotFoundException $e) {
            // if content was deleted as well by this operation then fall back to clear location and parent location cache.
            $this->httpCacheClearer->purge($locationIds);
        }
    }
DeleteLocationSlot