chore(backend): Laat productie zonder caching toe
This commit is contained in:
parent
15a6a7524f
commit
d15d91a144
3 changed files with 10 additions and 6 deletions
|
@ -15,6 +15,10 @@ async function initializeClient(): Promise<CacheClient> {
|
|||
const cachingPort = getEnvVar(envVars.CachePort);
|
||||
const cachingUrl = `${cachingHost}:${cachingPort}`;
|
||||
|
||||
if (cachingHost === '') {
|
||||
return cacheClient;
|
||||
}
|
||||
|
||||
cacheClient = Client.create(cachingUrl);
|
||||
|
||||
getLogger().info(`Memcached client initialized at ${cachingUrl}`);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue