Finish Hotfix-1
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good
This commit is contained in:
@@ -111,7 +111,7 @@ public class EntityCacheComponent implements ApplicationListener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public <T extends EntityBase> Stream<T> getCachedEntitiesStream(IntegryCustomerDB customerDB, String tableName, Predicate<T> filterPredicate) {
|
public <T extends EntityBase> Stream<T> getCachedEntitiesStream(IntegryCustomerDB customerDB, String tableName, Predicate<T> filterPredicate) {
|
||||||
if (!isCacheEnabled(customerDB, tableName) && UtilityDebug.isDebugExecution()) {
|
if (!isCacheEnabled(customerDB, tableName)) {
|
||||||
try {
|
try {
|
||||||
refreshCacheForEntity(customerDB, tableName);
|
refreshCacheForEntity(customerDB, tableName);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
@@ -241,7 +241,8 @@ public class EntityCacheComponent implements ApplicationListener {
|
|||||||
|
|
||||||
|
|
||||||
private boolean isCacheEnabled(IntegryCustomerDB customerDB, String tableName) {
|
private boolean isCacheEnabled(IntegryCustomerDB customerDB, String tableName) {
|
||||||
return entityCache.containsKey(customerDB) && entityCache.get(customerDB).containsKey(tableName);
|
return (entityCache.containsKey(customerDB) && entityCache.get(customerDB).containsKey(tableName)) ||
|
||||||
|
!(UtilityDebug.isDebugExecution() || UtilityDebug.isIntegryServer());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user