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 Previously , if it was like this:
{ {useSecondLevelCache code:java } } // The cache provider is null, needed when we should probably just return {{NoCachingRegionFactory}} since the entity either have second -level cache is required by the enabled // or query cache too enabled . Note that useSecondLevelCache is enabled by default {code} |
|