Try our conversational search powered by Generative AI!

Prices put in cache using bad object type

Found in

EPiServer.Commerce 10.8.0

Fixed in

EPiServer.Commerce 11.1.0

(Or a related package)

Created

Jul 23, 2017

Updated

Aug 14, 2017

Area

Core

State

Closed, Fixed and tested


Description

Items of type System.Linq.Enumerable.WhereSelectEnumerableIterator<Mediachase.Commerce.Pricing.IPriceValue, Mediachase.Commerce.Pricing.IPriceValue> are cached with the key prefix "EP:CatalogKeyPrices:SKU". This is probably a mistake.

Caching an enumerator with a projection means that potentially costly work needs to be done every time the value is used. The projection should be done once, then the final values should be put into cache.