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}
However, if {{useSecondLevelCache}} is null, we should probably just return {{ NoCachingRegionFactory}} since the entity-level cache is required by the query cache too. |
|