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 <carlo.costino@gsa.gov>
This commit is contained in:
Carlo Costino
2024-01-11 12:05:07 -05:00
parent cd3818c699
commit 6332399b5b
2 changed files with 2 additions and 1 deletions

View File

@@ -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

View File

@@ -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))