Skip to Content
0
Former Member
Feb 29, 2016 at 04:25 PM

Register New Query Region Cache - CacheRegionNotSpecifiedException

705 Views

Hi All.

I need to add additional Query region cache along with existing one to overcome high eviction rate and better performance on the queries. To achieve it, I had introduced a new cache in cache-spring,xml of my cusstom application and assigned all relevant param values, with handle type being QUERY_CACHE (with double underscore as prefix and suffix) only and included it in the existing cacheRegionsList.

However, while doing so I got:

de.hybris.platform.regioncache.region.CacheRegionNotSpecifiedException: No region can be resolved for key LegacyCacheKey(master)[key=[hjmp, find, 82, ejbFindByCodeExact, [user]], valueType=NON_SERIALIZABLE, typeCode=QUERY_CACHE} FINDER

for new **QUERY_CACHE being not registered.

Got reference from: https://answers.sap.com/questions/12756652/upgrading-from-5503-to-56-server-start-error.html?childToView=12785025#answer-12785025, which deals with registering a cache region using the CacheRegionRegistrar only available from 5.6 onwards whereas am using 5.4.

Is there any other alternate way to register additional query based region cache in the list.

Thanks in advance.