| The code comment for returning a NoCachingRegionFactory says that:
But, it does not match the code checks:
if ( useSecondLevelCache != null && useSecondLevelCache == FALSE ) {
if ( useQueryCache == null || useQueryCache == FALSE ) {
return NoCachingRegionFactory.INSTANCE;
}
}
The conditions should be changed to reflect the intended behavior specified in the comments. |