Added CONN_MAX_AGE setting to 7hrs to avoid 'database has gone away' errors with MySQL default settings. Resolves #619.

This commit is contained in:
Griatch 2015-03-06 21:21:07 +01:00
parent a6c2910e93
commit 04a1d9c238
3 changed files with 11 additions and 1 deletions

View file

@ -197,6 +197,11 @@ DATABASES = {
'HOST': '',
'PORT': ''
}}
# How long the django-database connection should be kept open, in seconds.
# If you get errors about the database having gone away after long idle
# periods, shorten this value (e.g. MySQL defaults to a timeout of 8 hrs)
CONN_MAX_AGE = 3600 * 7
######################################################################
# Evennia pluggable modules