diff options
Diffstat (limited to 'askbot/startup_procedures.py')
-rw-r--r-- | askbot/startup_procedures.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/askbot/startup_procedures.py b/askbot/startup_procedures.py index 3adbd781..f7c93964 100644 --- a/askbot/startup_procedures.py +++ b/askbot/startup_procedures.py @@ -1062,3 +1062,7 @@ def run(): except AskbotConfigError, error: print error sys.exit(1) + # close DB and cache connections to prevent issues in prefork mode + connection.close() + if hasattr(cache, 'close'): + cache.close() |