summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdolfo Fitoria <adolfo.fitoria@gmail.com>2012-05-10 09:53:48 -0600
committerAdolfo Fitoria <adolfo.fitoria@gmail.com>2012-05-10 09:53:48 -0600
commit32a4a5ddf93f2bc605706ecc3eafbc63dc923acf (patch)
tree2fa93f74bf977f2809dae450724fdde921897166
parent5747fa192aecc826a118c8be89c512d96076b42c (diff)
downloadaskbot-32a4a5ddf93f2bc605706ecc3eafbc63dc923acf.tar.gz
askbot-32a4a5ddf93f2bc605706ecc3eafbc63dc923acf.tar.bz2
askbot-32a4a5ddf93f2bc605706ecc3eafbc63dc923acf.zip
fixed preload_cache command
-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'
-
-