Turn redis back on

This commit is contained in:
David McDonald
2020-08-11 10:00:29 +01:00
parent 1a9c9c636f
commit 2daa945ef6

View File

@@ -90,7 +90,7 @@ class Config(object):
# URL of redis instance
REDIS_URL = os.getenv('REDIS_URL')
REDIS_ENABLED = False
REDIS_ENABLED = os.getenv('REDIS_ENABLED') == '1'
EXPIRE_CACHE_TEN_MINUTES = 600
EXPIRE_CACHE_EIGHT_DAYS = 8 * 24 * 60 * 60