diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-03-03 02:07:38 -0300 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-03-03 02:07:38 -0300 |
commit | e3e2f82da2c8f26d13f29f8dde373ccc58006cf4 (patch) | |
tree | 9bc0fbc2d6a7b5a50c880392000348c9fc06dc27 | |
parent | fc82037864f23831ecb7d4a29a5df176ae7f799b (diff) | |
download | askbot-e3e2f82da2c8f26d13f29f8dde373ccc58006cf4.tar.gz askbot-e3e2f82da2c8f26d13f29f8dde373ccc58006cf4.tar.bz2 askbot-e3e2f82da2c8f26d13f29f8dde373ccc58006cf4.zip |
disabled the answer list caching because there is no invalidation yet
-rw-r--r-- | askbot/models/question.py | 7 | ||||
-rw-r--r-- | askbot/views/readers.py | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/askbot/models/question.py b/askbot/models/question.py index e70c71b0..e735eb88 100644 --- a/askbot/models/question.py +++ b/askbot/models/question.py @@ -428,8 +428,9 @@ class Thread(models.Model): """get all answer posts as a list for the Thread, and a given user. This list is cached.""" key = self.ANSWER_LIST_KEY_TPL % self.id - answer_list = cache.cache.get(key) - if not answer_list: + #disable caching for now b/c there is no invalidation yet + #answer_list = cache.cache.get(key) + if True:#not answer_list: answers = self.get_answers() answers = answers.select_related('thread', 'author', 'last_edited_by') answers = answers.order_by( @@ -440,7 +441,7 @@ class Thread(models.Model): }[sort_method] ) answer_list = list(answers) - cache.cache.set(key, answer_list) + #cache.cache.set(key, answer_list) return answer_list diff --git a/askbot/views/readers.py b/askbot/views/readers.py index 8dd49a0b..59bb8eff 100644 --- a/askbot/views/readers.py +++ b/askbot/views/readers.py @@ -530,7 +530,7 @@ def question(request, id):#refactor - long subroutine. display question body, an } result = render_into_skin('question.html', data, request) - print datetime.datetime.now() - before + #print datetime.datetime.now() - before return result def revisions(request, id, object_name=None): |