Enabling the dynamic cache service and servlet caching
For local stores running in the Development environment, you can use the WebSphere Application Server (WAS) 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).
Procedure
-
Enable Dynamic Cache Service
- WebSphere Application Server (WAS) administrative
console
- Open WebSphere Application Server administrative console.
- Go to Servers > Server Types > WebSphere Application Server > server_name.
- In Container Settings, select Container Services > Dynamic Cache Service.
- Select the Enable service check box.
- Select Apply, and then save the configuration.
- Restart the application server.
- Docker/containerized environments
- For containerized deployments, run
enable-servlet-cachingcommand to enable caching for the web container. For more information see Transaction server Run Engine commands
- For containerized deployments, run
- WebSphere Application Server (WAS) administrative
console
-
Configuring the baseCache to use a selected cache service provider (HCL Cache or
Dynacache)