Use Custom Caches to Return Immutable Objects

Custom caches are designed to return immutable copies of the original objects stored in the cache. Previously, edge cases existed where objects and arrays in custom caches could be modified. This issue has been fixed.

When: This change becomes effective with the B2C Commerce 22.1 release, and applies to all sandbox, development, and staging instances. Production instances will be activated in a later release.

How: If you don’t use custom caches or use custom caches in the intended and documented way, you don’t need to take action. In the rare case that you use custom caches with code that performs an operation to modify the state of an object returned by custom cashes, a code change is required to avoid a failure exception, when calling the affected operation.

X Privacy Update: We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used. By continuing to use this site you are giving us your consent to do this. Privacy Policy.