Ask Your Question
2

Answer not showing even though summary says "1 answer"

asked 2012-11-04 23:51:58 -0500

siovene gravatar image

updated 2012-12-21 20:04:14 -0500

Evgeny gravatar image

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?

edit retag flag offensive 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 gravatar imagesiovene ( 2012-11-05 06:58:41 -0500 )edit
1

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

Evgeny gravatar imageEvgeny ( 2012-11-07 11:31:30 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
3

answered 2012-11-07 11:33:44 -0500

Evgeny gravatar image

updated 2012-12-21 20:04:53 -0500

Fixed in the repository, please try. Thanks.

edit fixed in 0.7.47

edit flag offensive delete link more

Comments

That fixed it, awesome! Thanks!

siovene gravatar imagesiovene ( 2012-11-07 12:01:17 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2012-11-04 23:51:58 -0500

Seen: 169 times

Last updated: Dec 21 '12