Merge pull request #729 from GSA/fix-redis-for-reals

Really make sure Redis is enabled
This commit is contained in:
Carlo Costino
2024-01-11 12:12:07 -05:00
committed by GitHub
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))