Search caching is enabled by default. You can disable caching by setting the cacheService property of the RoutingSearchService component to null. Note that if you disable caching, Oracle ATG Web Commerce Search does not clear out any existing cached queries, but it no longer retrieves existing cached queries or caches new queries.

If caching is enabled, you can configure its behavior by setting properties of the /atg/search/routing/CacheService component, which is of class EHCacheService. By default, this component includes these settings:

defaultMaxElementsInMemory=100
defaultOverflowToDisk=true
defaultMemoryStoreEvictionPolicy=LRU
defaultMaxElementsOnDisk=10000000
defaultDiskPersistent=true

These setting configure the cache to store a maximum of 100 queries in memory. When this number is exceeded, the least recently used queries are moved to disk, up to a total of 10,000,000. Cache contents are maintained on disk during Oracle ATG Web Commerce server restarts.