Announcement: You can find the guides for Commerce 7.5 and later on the new Elastic Path Documentation site. This Developer Center contains the guides for Commerce 6.13.0 through 7.4.1.Visit new site

This version of Elastic Path Commerce is no longer supported or maintained. To upgrade to the latest version, contact your Elastic Path representative.

EhCache

EhCache

Elastic Path 6.13.0 uses EhCache, an open source caching system, to handle application caching.

Advantages

Using EhCache gives Elastic Path the following benefits:

  • JMX Support
  • Better unified and distributed caching control across application level caches
  • More consistent cache evictions

By using JMX, you can monitor and modify your object caches. See JMX Monitoring and Monitoring EhCache for more information.

Configuring EhCache

Application Level Caching

The application level cache, which sits between the view layer and the data access layer, is used by the storefront to cache semi-static store and product data.

The timeouts of a Storefront's application level cache can be configured by modifying the cache's timeToLive and timeToIdle bean properties in ep-storefront\src\main\resources\spring\cache\cache.xml.

See Storefront Caching for a list of application caches that can be configured.

Note:

By default, application caches will use the properties defined in the Core's ehcache.xml. These may be overridden in the cache`s bean specified in cache.xml. For information on EhCache's configurable properties, see EhCache's Cache Configuration guide.