##// END OF EJS Templates
Temp fix for the post cache problem
neko259 -
r595:cfe2f372 default
parent child Browse files
Show More
@@ -431,11 +431,11 b' class Thread(models.Model):'
431 431 Get first post of the thread
432 432 """
433 433
434 cache_key = CACHE_KEY_OPENING_POST + str(self.id)
435 opening_post = cache.get(cache_key)
436 if not opening_post:
437 opening_post = self.get_replies()[0]
438 cache.set(cache_key, opening_post)
434 # cache_key = CACHE_KEY_OPENING_POST + str(self.id)
435 # opening_post = cache.get(cache_key)
436 # if not opening_post:
437 opening_post = self.get_replies()[0]
438 # cache.set(cache_key, opening_post)
439 439
440 440 return opening_post
441 441
General Comments 0
You need to be logged in to leave comments. Login now