Finish Hotfix-1
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good

This commit is contained in:
2025-11-17 10:13:32 +01:00

View File

@@ -111,7 +111,7 @@ public class EntityCacheComponent implements ApplicationListener {
}
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 {
refreshCacheForEntity(customerDB, tableName);
} catch (Exception e) {
@@ -241,7 +241,8 @@ public class EntityCacheComponent implements ApplicationListener {
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());
}
}