Skip to content

Latest commit

 

History

History
25 lines (25 loc) · 1.92 KB

2021-03-18-add-cross-selling-and-category-route-cache.md

File metadata and controls

25 lines (25 loc) · 1.92 KB
title issue author author_email author_github
Add cross selling and category route cache
NEXT-14084
OliverSkroblin
OliverSkroblin

Core

  • Added CategoryRouteCacheKeyEvent which is used to generate the cache key for the category route
  • Added CategoryRouteCacheTagsEvent which is used to generate the cache tags for the category route
  • Added CachedCategoryRoute which adds a cache layer around the store-api.category route
  • Added ProductStreamMappingDefinition which contains a mapping, which product is affected by which product stream
  • Added ProductStreamMappingIndexingMessage which is used to generate the mapping between products and the affected product streams
  • Added ProductStreamUpdater which updates the mapping between products and the affected product streams
  • Added CrossSellingRouteCacheKeyEvent which is used to generate the cache key for the cross selling route
  • Added CrossSellingRouteCacheTagsEvent which is used to generate the cache tags for the cross selling route
  • Added ProductChangedEventInterface which is used to use the same event listener for different product events.
  • Added ProductNoLongerAvailableEvent which is triggered when the product.available flag switched to false
  • Added CachedProductCrossSellingRoute which adds a cache layer around the store-api.cross-selling route
  • Added ProductSliderStruct.php::streamId property
  • Added ProductEntity::streams property
  • Added CrossSellingElement.php::streamId property
  • Moved src/Storefront/Framework/Cache/CacheDecorator.php to src/Core/Framework/Adapter/Cache/CacheDecorator.php
  • Moved src/Storefront/Framework/Cache/CacheTagCollection.php to src/Core/Framework/Adapter/Cache/CacheTagCollection.php
  • Changed signature of AbstractProductCrossSellingRoute::load function: load(string $productId, Request $request, SalesChannelContext $context, Criteria $criteria): ProductCrossSellingRouteResponse;