Removed redis cache from is on whatsapp

This commit is contained in:
Judson Cairo
2024-08-28 17:29:01 -03:00
parent 49806cf47e
commit 41342f39de
3 changed files with 9 additions and 70 deletions

View File

@@ -169,8 +169,6 @@ export type CacheConfRedis = {
PREFIX_KEY: string;
TTL: number;
SAVE_INSTANCES: boolean;
SAVE_IS_ON_WHATSAPP: boolean;
SAVE_IS_ON_WHATSAPP_TTL: number;
};
export type CacheConfLocal = {
ENABLED: boolean;
@@ -457,9 +455,6 @@ export class ConfigService {
PREFIX_KEY: process.env?.CACHE_REDIS_PREFIX_KEY || 'evolution-cache',
TTL: Number.parseInt(process.env?.CACHE_REDIS_TTL) || 604800,
SAVE_INSTANCES: process.env?.CACHE_REDIS_SAVE_INSTANCES === 'true',
SAVE_IS_ON_WHATSAPP: process.env?.CACHE_REDIS_SAVE_IS_ON_WHATSAPP === 'true',
SAVE_IS_ON_WHATSAPP_TTL:
(Number.parseInt(process.env?.CACHE_REDIS_SAVE_IS_ON_WHATSAPP_TTL) || 7) * 24 * 60 * 60,
},
LOCAL: {
ENABLED: process.env?.CACHE_LOCAL_ENABLED === 'true',