The code comment for returning a {{NoCachingRegionFactory}} says that:
{code:java} // We should immediately return NoCachingRegionFactory if either: // 1) both are explicitly FALSE // 2) USE_SECOND_LEVEL_CACHE is FALSE and USE_QUERY_CACHE is null {code}
But However , it does not match the code checks:
{code:java} if ( useSecondLevelCache != null && useSecondLevelCache == FALSE ) { if ( useQueryCache == null || useQueryCache == FALSE ) { return NoCachingRegionFactory.INSTANCE; } } {code}
The conditions should be changed to reflect the intended behavior specified in the comments. |
|