diff --git a/api/src/engine/engine.service.ts b/api/src/engine/engine.service.ts index 35b3cc39db577982f63605f6457ec3929d9b7f90..c9661520f1cb929da165e584eced8f43bb1b3ebb 100644 --- a/api/src/engine/engine.service.ts +++ b/api/src/engine/engine.service.ts @@ -32,7 +32,7 @@ import { FormulaOperation } from './models/formula/formula-operation.model'; import { Variable } from './models/variable.model'; const DOMAINS_CACHE_KEY = 'domains'; -const ALGORITHMS_CACHE_KEY = 'experiments'; +const ALGORITHMS_CACHE_KEY = 'algorithms'; const CACHE_KEYS = [DOMAINS_CACHE_KEY, ALGORITHMS_CACHE_KEY]; /** @@ -99,6 +99,8 @@ export default class EngineService implements Connector { const cached = await this.cacheManager.get<T>(key); if (cached) return cached; + console.log(`Cache for ${key} not found. Calling function.`); + const result = await fn(); this.cacheManager.set(key, result, { ttl: this.cacheConf.ttl });