Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Set conn_max_age to enable reuse of DB connections
Patryk Zawadzki6f54dacb76e6
diff --git a/saleor/settings.py b/saleor/settings.pyindex ad753d2c3b..cea7991910 100644--- a/saleor/settings.py+++ b/saleor/settings.py@@ -33,7 +33,8 @@ if os.environ.get('REDIS_URL'):'LOCATION': os.environ.get('REDIS_URL')}SQLITE_DB_URL = 'sqlite:///' + os.path.join(PROJECT_ROOT, 'dev.sqlite')-DATABASES = {'default': dj_database_url.config(default=SQLITE_DB_URL)}+DATABASES = {+ 'default': dj_database_url.config(default=SQLITE_DB_URL, conn_max_age=600)}TIME_ZONE = 'America/Chicago'