Added redis cache for on whatsapp & TTL on .env

This commit is contained in:
Judson Cairo
2024-08-28 12:11:32 -03:00
parent ce6438b9a8
commit 7a76600cd6
4 changed files with 80 additions and 13 deletions

View File

@@ -37,6 +37,7 @@ DATABASE_SAVE_DATA_CHATS=true
DATABASE_SAVE_DATA_LABELS=true
DATABASE_SAVE_DATA_HISTORIC=true
DATABASE_SAVE_IS_ON_WHATSAPP=true
DATABASE_SAVE_IS_ON_WHATSAPP_DAYS=7
# RabbitMQ - Environment variables
RABBITMQ_ENABLED=false
@@ -172,12 +173,17 @@ DIFY_ENABLED=false
# Redis Cache enabled
CACHE_REDIS_ENABLED=true
CACHE_REDIS_URI=redis://localhost:6379/6
CACHE_REDIS_TTL=604800
# Prefix serves to differentiate data from one installation to another that are using the same redis
CACHE_REDIS_PREFIX_KEY=evolution
# Enabling this variable will save the connection information in Redis and not in the database.
CACHE_REDIS_SAVE_INSTANCES=false
# Local Cache enabled
CACHE_LOCAL_ENABLED=false
# Local Cache enabled
CACHE_SAVE_IS_ON_WHATSAPP=true
CACHE_REDIS_SAVE_IS_ON_WHATSAPP=false
CACHE_REDIS_SAVE_IS_ON_WHATSAPP_DAYS=7
# Amazon S3 - Environment variables
S3_ENABLED=false