From 01d0697165ddeb2b3032239077c20be56497bd66 Mon Sep 17 00:00:00 2001 From: Calen Pennington Date: Mon, 27 Aug 2012 16:26:35 -0400 Subject: [PATCH] Eagerly load modulestores on server startup --- common/lib/xmodule/xmodule/modulestore/django.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/lib/xmodule/xmodule/modulestore/django.py b/common/lib/xmodule/xmodule/modulestore/django.py index 6a7315a074..59668b4a5a 100644 --- a/common/lib/xmodule/xmodule/modulestore/django.py +++ b/common/lib/xmodule/xmodule/modulestore/django.py @@ -43,3 +43,7 @@ def modulestore(name='default'): ) return _MODULESTORES[name] + +# Initialize the modulestores immediately +for store_name in settings.MODULESTORE: + modulestore(store_name)