summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--askbot/management/commands/preload_livesettings_cache.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/askbot/management/commands/preload_livesettings_cache.py b/askbot/management/commands/preload_livesettings_cache.py
index 431572c4..1898fc6a 100644
--- a/askbot/management/commands/preload_livesettings_cache.py
+++ b/askbot/management/commands/preload_livesettings_cache.py
@@ -1,17 +1,12 @@
from django.core.management.base import NoArgsCommand
-from askbot.conf import settings
class Command(NoArgsCommand):
'''Loads livesettings values to cache helping speed up
initial load time for the users'''
def handle_noargs(self, **options):
- empty1 = emtpy2 = None
- print 'loading cache'
+ from askbot.conf import settings
#Just loads all the settings that way they will be in the cache
for key, value in settings._ConfigSettings__instance.items():
- empty1 = key
- empty2 = value
+ empty1 = getattr(settings, key)
print 'cache pre-loaded'
-
-