Caching

The Business and Enterprise Editions of KonaKart provide functionality to configure caches for a growing number of KonaKart objects.

By default the Open Source Ehcache cache is used which can be configured in the konakart_ehcache.xml configuration file. This file is located in the webapps/konakart/WEB-INF/classes directory of a standard installation.

Three cache types are currently available with different characteristics:

Currently there are two caches supported but the number is likely to grow in the future as more opportunities for improving performance are implemented:

In the Configuration >> Cache panel in the Administration Application you can choose to enable or disable each of the above two caches.

To use the KonaKart cache simply remove the konakart_ehcache.xml file (if that file is found on the classpath an Ehcache cache will be used).

To use a Big Memory Go cache you need to take the following steps:

If you need more control over which products are cached and which are not you can create your own version of the ProductMgr and override the cacheThisProduct product. This method takes a product as an argument and returns true if the product should be cached and false if not. An example of such a ProductMgr class is provided at "java_api_examples\src\com\konakart\apiexamples\MyProductMgrEE.java".