Don't miss out Virtual Happy Hour today (April 26).

Try our conversational search powered by Generative AI!

Many calls to StructureMap to create instances of UrlResolver

Fixed in

EPiServer.Commerce 9.12.0

(Or a related package)

Created

Apr 04, 2016

Updated

Apr 18, 2016

State

Closed, Fixed and tested


Description

The UrlResolver is used in static HTML helper methods, such as Url.ContentUrl. Creating new instances when looping over long lists of content adds a lot of overhead in StructureMap.

Implementation for UrlResolver should be static or request/thread scoped instead of creating a new instance all the time.

Note: Commerce replaces the built-in implementation in CMS Core.