Show More
@@ -431,11 +431,11 b' class Thread(models.Model):' | |||||
431 | Get first post of the thread |
|
431 | Get first post of the thread | |
432 | """ |
|
432 | """ | |
433 |
|
433 | |||
434 | cache_key = CACHE_KEY_OPENING_POST + str(self.id) |
|
434 | # cache_key = CACHE_KEY_OPENING_POST + str(self.id) | |
435 | opening_post = cache.get(cache_key) |
|
435 | # opening_post = cache.get(cache_key) | |
436 | if not opening_post: |
|
436 | # if not opening_post: | |
437 |
|
|
437 | opening_post = self.get_replies()[0] | |
438 | cache.set(cache_key, opening_post) |
|
438 | # cache.set(cache_key, opening_post) | |
439 |
|
439 | |||
440 | return opening_post |
|
440 | return opening_post | |
441 |
|
441 |
General Comments 0
You need to be logged in to leave comments.
Login now