# ehcache: Caching enhancements

- Type: Enhancement
- Reference: PBI 353140 / 358632 / 350323
- Compliance Impacts: These enhancements are not a compliance or regulatory issue.
- Documentation: Expere Implementation Guides: Caching notes.

## Summary

Summary: Expere has upgraded to Ehcache 2.10.0 to utilize enhanced caching capability; the following enhancements have been implemented for ehcache.xml:

- Enhancement #1: Previously there was only one level of cache on objects. Changes have been made to include two cache levels and to add images to the updated cache configuration.
- Enhancement #2: Cache memory allocation has changed in ehcache.xml. Previously, users could change the maxElementsInMemory value in the global cache (ExpereCache) or any of its smaller caches.

Now, users can adjust the maxBytesLocalHeap and maxBytesLocaldisk values in ExpereCache and its smaller caches. maxBytesLocalHeap is the percentage of allocated Java Virtual Machine (JVM) heap size while maxBytesLocalDisk allocates a specified amount of memory of the local disk for overflow caching.

For detailed information on how to change the memory allocations in the configuration file, see the Expere Implementation Guide: Caching notes.

## Technical Notes

None

## Implementation Notes

This feature requires an Expere Engine update.