From 6332399b5bdd5d01f120d4a03634e9b36e33adf9 Mon Sep 17 00:00:00 2001 From: Carlo Costino Date: Thu, 11 Jan 2024 12:05:07 -0500 Subject: [PATCH] Really make sure Redis is enabled This changeset should cover the rest of the missing pieces to make sure Redis connectivity is truly established in the API app. Signed-off-by: Carlo Costino --- app/config.py | 2 +- manifest.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/config.py b/app/config.py index 61feb6ae7..49cbd89c0 100644 --- a/app/config.py +++ b/app/config.py @@ -89,7 +89,7 @@ class Config(object): PAGE_SIZE = 50 API_PAGE_SIZE = 250 REDIS_URL = cloud_config.redis_url - REDIS_ENABLED = getenv("REDIS_ENABLED", "0") == "1" + REDIS_ENABLED = getenv("REDIS_ENABLED", "1") == "1" EXPIRE_CACHE_TEN_MINUTES = 600 EXPIRE_CACHE_EIGHT_DAYS = 8 * 24 * 60 * 60 diff --git a/manifest.yml b/manifest.yml index eb78a7dc1..eb42d7a74 100644 --- a/manifest.yml +++ b/manifest.yml @@ -40,6 +40,7 @@ applications: NEW_RELIC_ENVIRONMENT: ((env)) NEW_RELIC_LICENSE_KEY: ((NEW_RELIC_LICENSE_KEY)) + REDIS_ENABLED: ((redis_enabled)) NOTIFY_ENVIRONMENT: ((env)) API_HOST_NAME: https://((public_api_route)) ADMIN_BASE_URL: ((admin_base_url))