mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-18 09:05:21 +00:00
HHH-7130 cleanup
This commit is contained in:
parent
aec877adb7
commit
c7dbdf9fd5
@ -233,7 +233,7 @@ public boolean containsQuery(String regionName) {
|
|||||||
public void evictDefaultQueryRegion() {
|
public void evictDefaultQueryRegion() {
|
||||||
if ( sessionFactory.getSettings().isQueryCacheEnabled() ) {
|
if ( sessionFactory.getSettings().isQueryCacheEnabled() ) {
|
||||||
if ( LOG.isDebugEnabled() ) {
|
if ( LOG.isDebugEnabled() ) {
|
||||||
LOG.debugf( "Evicting default query region cache." );
|
LOG.debug( "Evicting default query region cache." );
|
||||||
}
|
}
|
||||||
sessionFactory.getQueryCache().clear();
|
sessionFactory.getQueryCache().clear();
|
||||||
}
|
}
|
||||||
@ -264,7 +264,7 @@ public void evictQueryRegions() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if ( LOG.isDebugEnabled() ) {
|
if ( LOG.isDebugEnabled() ) {
|
||||||
LOG.debugf( "Evicting cache of all query regions." );
|
LOG.debug( "Evicting cache of all query regions." );
|
||||||
}
|
}
|
||||||
for ( QueryCache queryCache : queryCaches.values() ) {
|
for ( QueryCache queryCache : queryCaches.values() ) {
|
||||||
queryCache.clear();
|
queryCache.clear();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user