# HG changeset patch # User neko259 # Date 2014-01-24 19:39:58 # Node ID cfe2f372c710912ebadb54faab203a21c2be099a # Parent 1f06cbcc1d6b55b51e1c43c3f06733b38f65cbf5 Temp fix for the post cache problem diff --git a/boards/models/post.py b/boards/models/post.py --- a/boards/models/post.py +++ b/boards/models/post.py @@ -431,11 +431,11 @@ class Thread(models.Model): Get first post of the thread """ - cache_key = CACHE_KEY_OPENING_POST + str(self.id) - opening_post = cache.get(cache_key) - if not opening_post: - opening_post = self.get_replies()[0] - cache.set(cache_key, opening_post) + # cache_key = CACHE_KEY_OPENING_POST + str(self.id) + # opening_post = cache.get(cache_key) + # if not opening_post: + opening_post = self.get_replies()[0] + # cache.set(cache_key, opening_post) return opening_post