return CacheValueCompressor::
compress($response);
});
return CacheValueCompressor::
uncompress($value);
} private function generateKey(Request
$request, SalesChannelContext
$context): ?string
{ $parts =
[$this->generator->
getSalesChannelContextHash($context)];
$event =
new SitemapRouteCacheKeyEvent($parts,
$request,
$context, null
);
$this->dispatcher->
dispatch($event);
if (!
$event->
shouldCache()) { return null;
} return self::
buildName($context->
getSalesChannelId()) . '-' .
md5(Json::
encode($event->
getParts()));
} /**
* @return array<string>
*/