First time here? Check out the FAQ!
2

Answer not showing even though summary says "1 answer"
 

Hi, I'm running Askbot from git master on a new community. I've observed already in two instances that one ore more answers are not displayed in the question's page, even though the summary information in the questions list says "1 answer".

I checked out the site admin, and there I couldn't see any difference (except the text of the answer of course) between an answer that was showing and one that wasn't.

Moreover, one of these "hidden" answers suddenly started showing a few hours later.

Could it be a caching issue or what? Thanks!

Edit

The weirdest thing is happening. I'm sure it's got to be a server-side cache issue, because if I flush memcached then the answer appears, but I went through the code, and askbot/views/readers.py has hardcaded is_cacheable to False, so there isn't any caching going on there. But still! This is really puzzling, can anyone take a look?

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
siovene's avatar
431
siovene
asked 12 years ago
Evgeny's avatar
13.2k
Evgeny
updated 12 years ago

Comments

1

I'm most certain it is a caching issue. Flushing memcached cache will make the missing answer appear. Please take a look at this because it's happening every day in my low-traffic new community. Things will get worse as the community grows! Thanks!

siovene's avatar siovene (12 years ago)
1

I think I found the source of this: the thread cache was not invalidated upon publishing answers posted before logging in.

Evgeny's avatar Evgeny (12 years ago)
see more comments

1 Answer

3

Fixed in the repository, please try. Thanks.

edit fixed in 0.7.47

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
answered 12 years ago, updated 12 years ago
link

Comments

That fixed it, awesome! Thanks!

siovene's avatar siovene (12 years ago)
see more comments