Loading
Upcoming Mandatory Changes to Public Key Infrastructure (PKI)Read More
Salesforce Enforces New Security Requirements in Summer 2026Read More
B2C Commerce Release Notes
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Use Custom Caches to Return Immutable Objects on Production Instances

          Use Custom Caches to Return Immutable Objects on Production Instances

          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.3 release, and applies to all production instances. Previously, with the 22.1 release, this change was made for all sandbox, development, and staging instances.

          How: If you don’t use custom caches or use custom caches in the intended and documented way, no action is required. 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.

           
          Loading
          Salesforce Help | Article