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?

siovene's avatar
431
siovene
asked 2012-11-04 23:51:58 -0600
Evgeny's avatar
13.2k
Evgeny
updated 2012-12-21 20:04:14 -0600
edit flag offensive 0 remove flag close merge delete

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 (2012-11-05 06:58:41 -0600) edit
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 (2012-11-07 11:31:30 -0600) edit
add a comment see more comments

1 Answer

3

Fixed in the repository, please try. Thanks.

edit fixed in 0.7.47

Evgeny's avatar
13.2k
Evgeny
answered 2012-11-07 11:33:44 -0600, updated 2012-12-21 20:04:53 -0600
edit flag offensive 0 remove flag delete link

Comments

That fixed it, awesome! Thanks!

siovene's avatar siovene (2012-11-07 12:01:17 -0600) edit
add a comment see more comments