Enabling the dynamic cache service and servlet caching
For local stores running in the Development environment, you can use the WebSphere Application Server administrative console to enable the dynamic cache service and servlet caching. For local stores running in the server/runtime environment, create a custom image using Run Engine commands to enable dynamic cache service and servlet caching.
Notes:
- Data caching is enabled by default for remote stores. In the default Store server Docker
container, you can find the cache parameters in the server.xml file
configuration file. The parameters are defined in
<distributedMap id="services/cache/cachename" memorySizeInEntries="cachesize"/>
elements, where cachename is the name of the Store server cache, and cachesize is the number of entries to cache. - For stores that run on the Store server, it might not be necessary to tune performance as the default settings might be sufficient. To tune the performance of the Store server, see the topic distributedMap - Distributed Map (distributedMap).
- In the development environment, servlet caching is disabled. To enable and use servlet caching, see the Enabling the dynamic cache service and servlet caching topic.
Procedure
- To ensure that the dynamic cache service is enabled, see the Enabling the dynamic cache service topics.
-
Configuring the baseCache to use the default Dynamic Cache service provider.
-
Configure the baseCache to use the WebSphere eXtreme Scale service provider.
- For more information about the service settings for dynamic caching, see Dynamic cache service settings.
- For additional caching, enable the data cache to use the object caches defined in the samples/dynacache/cacheinstances.properties file. For more information see, Configuring HCL Commerce data cache