From ad7d0ca529adce5faeb7b4db47a40b42f650827b Mon Sep 17 00:00:00 2001 From: Gregor Zurowski Date: Thu, 7 Nov 2024 13:27:39 +0000 Subject: [PATCH] Use persistent database connection for all Beanstalk environments --- src/researchhub/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/researchhub/settings.py b/src/researchhub/settings.py index 4e7bdccc3..adc2bfead 100644 --- a/src/researchhub/settings.py +++ b/src/researchhub/settings.py @@ -465,7 +465,7 @@ def silky_capture(request): # Persistent database connections. # See: https://docs.djangoproject.com/en/4.2/ref/databases/#persistent-database-connections -if STAGING: +if ELASTIC_BEANSTALK: DATABASES["default"]["MAX_CONN_AGE"] = 180 # Password validation