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