CodeExplorer generateCacheKeyForSalesChannel example
return new SitemapGenerationResult( true,
$lastProvider,
null,
$context->
getSalesChannel()->
getId(),
$context->
getLanguageId() );
} private function lock(SalesChannelContext
$salesChannelContext, bool
$force): void
{ $key =
$this->
generateCacheKeyForSalesChannel($salesChannelContext);
$item =
$this->cache->
getItem($key);
if ($item->
isHit() && !
$force) { throw new AlreadyLockedException($salesChannelContext);
} $item->
set(true
);
$this->cache->
save($item);
} private function unlock(SalesChannelContext
$salesChannelContext): void
{