diff --git a/hibernate-core/src/main/java/org/hibernate/internal/CacheImpl.java b/hibernate-core/src/main/java/org/hibernate/internal/CacheImpl.java index 5ffa98f3a5..7735b4b8d0 100644 --- a/hibernate-core/src/main/java/org/hibernate/internal/CacheImpl.java +++ b/hibernate-core/src/main/java/org/hibernate/internal/CacheImpl.java @@ -260,6 +260,8 @@ public class CacheImpl implements CacheImplementor { @Override public void evictQueryRegions() { + evictDefaultQueryRegion(); + if ( CollectionHelper.isEmpty( queryCaches ) ) { return; } @@ -268,7 +270,6 @@ public class CacheImpl implements CacheImplementor { } for ( QueryCache queryCache : queryCaches.values() ) { queryCache.clear(); - // TODO : cleanup entries in queryCaches + allCacheRegions ? } }