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}
Previously, it was like this and the useSecondLevelCache was true by default :
{code:java} // The cache provider is needed when we either have second-level cache enabled // or query cache enabled. Note that useSecondLevelCache is enabled by default {code} |
|