Refactor caching and Telegram integration
- Updated configuration to enforce Redis caching for notified articles, removing memory cache options. - Enhanced wallamonitor.py to load Redis cache settings and handle errors more effectively. - Implemented new API endpoints for clearing Redis cache and retrieving Telegram forum topics. - Improved frontend components to support fetching and displaying available Telegram threads. - Added functionality for clearing cache from the UI, ensuring better management of notified articles.
This commit is contained in:
@@ -1,20 +1,12 @@
|
||||
telegram_token: ""
|
||||
telegram_channel: "@canal_o_grupo"
|
||||
|
||||
# Configuración del cache de artículos notificados
|
||||
# cache_type: "memory" o "redis"
|
||||
# - "memory": Almacena en memoria (no requiere Redis, limitado por el límite configurado)
|
||||
# - "redis": Almacena en Redis (requiere servidor Redis, ilimitado con TTL de 7 días)
|
||||
# Configuración del cache de artículos notificados (Redis requerido)
|
||||
# Almacena en Redis con TTL de 7 días
|
||||
cache:
|
||||
type: "memory" # "memory" o "redis"
|
||||
|
||||
# Configuración para cache en memoria
|
||||
memory:
|
||||
limit: 300 # Límite de artículos a mantener en memoria
|
||||
|
||||
# Configuración para cache en Redis (solo necesario si type: "redis")
|
||||
type: "redis"
|
||||
redis:
|
||||
host: "localhost"
|
||||
host: "localhost" # En Docker usar: "redis"
|
||||
port: 6379
|
||||
db: 0
|
||||
password: null # null o string con la contraseña
|
||||
|
||||
Reference in New Issue
Block a user