Unnecessarily aggressive locking in Business foundation model

Fixed in

EPiServer.Commerce 10.4.1

Created

Mar 06 2017

Updated

Mar 10 2017

Area

Core

State

Closed, Fixed and tested


Description

BusinessFoundation keeps a version number for the metafield/metaclass model to be able to refresh the model cached in memory. But the check is done under a global lock, which is unnecessary. Some kind of locking to make sure multiple threads don't refresh the model might be motivated though.