chore(backend): Laat productie zonder caching toe

This commit is contained in:
Tibo De Peuter 2025-05-16 23:21:33 +02:00
parent 15a6a7524f
commit d15d91a144
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2
3 changed files with 10 additions and 6 deletions

View file

@ -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}`);