Enable the dynamic cache service and servlet caching

For local stores running in the Development environment, we 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:

  1. Data caching is enabled by default for remote stores. In the default Store server Docker container, we 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.

  2. 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).

  3. In the development environment, servlet caching is disabled. To enable and use servlet caching, see the Configure servlet caching topic.


Procedure


Related concepts
Production environments