Use the Shared Cache Manager and table in the database to help minimize the number of expensive calls to the ERP for pricing and inventory. This ensures that the system does not have to go back to the ERP when requests come in from different web servers.
The Shared Cache Manager uses the memory cache manager and the setting toggle is set to None by default.
Only classes marked with the ProtoContract attribute are allowed into the shared cache.
Enable the shared cache manager
- Go to Administration > System> Settings.
- Search for Shared Cache Manager in the Admin Console.
- Select your Shared Cache Manager from the drop-down list, whether SqlServer or Redis. Default value: SqlServer.
- Click Save.
To use the Redis version of the shared cache manager, you must specify the Redis URL in a web.config or appSettings.config entry named RedisUrl. The simplest option is to specify the URL to the Redis server, but all of the available options for the connection string can be found here:
Clear shared cache storage
- Click Debugging Tools in the top menu bar of the Admin Console.
- Select Clear Shared Cache Storage.