Ask Your Question
1

Askbot and memcached?

asked 2011-09-16 16:25:24 -0500

mether gravatar image mether flag of India
1272 27 17 45
http://fedoraproject.org/

updated 2011-09-16 20:52:36 -0500

Evgeny gravatar image Evgeny flag of Chile
11009 50 84 182
http://askbot.org/

Running a instance at http://ask.stg.fedoraproject.org/questions/ with memcached and it seems buggy. If two people are logged in, I see in the frontpage as noone has logged in but if I go to the people page, I see the other person as logged in and if I go to the questions page, I see myself logged in. Something is buggy here but very fast compared to, without memcached.

delete close flag offensive retag edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2011-09-16 20:30:13 -0500

Evgeny gravatar image Evgeny flag of Chile
11009 50 84 182
http://askbot.org/

If you have have 'django.middleware.cache.UpdateCacheMiddleware', and it's twin 'django.middleware.cache.FetchFromCacheMiddleware', in the MIDDLEWARE_CLASSES then please remove them.

The effect you see is due to caching whole pages - including the header part on top.

Even without the page caching now you will get benefit from your memcached instance - because site settings are cached heavily. Settings are used many times in the course generating output.

We are planning some work to improve support of caching, some things can be done very easily.

link publish delete flag offensive edit
0

answered 2011-09-17 07:34:32 -0500

mether gravatar image mether flag of India
1272 27 17 45
http://fedoraproject.org/

Thanks but this is still buggy. If I ask a question, it doesn't show up and the old cached page is shown instead. Sometimes when I go to the questions page I get a page not found instead and I have to refresh. This is problematic.

link publish delete flag offensive edit

Comments

Could you verify that in runserver? AFAIK without the caching middlewares at this point pages in askbot won't be cached. It is possible that previous cached responses set very far in in the future "Expires" headers. Try deleting cache in the browser - does it help?

Evgeny ( 2011-09-17 07:51:55 -0500 )edit
1

Cleared the cache and that didn't fix the problem but I touched the wsgi file and seems to work fine now. Will test more but there seems to some issues here under the surface

mether ( 2011-09-17 08:03:11 -0500 )edit

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Reliable Askbot Hosting

Create your Q&A site at askbot.com. Managed Askbot hosting at just $15/mo. Dedicated hosting, support contracts, consulting services.

create your Q&A site
30 days free trial

Question tools

Follow
2 followers

subscribe to rss feed

Stats

Asked: 2011-09-16 16:25:24 -0500

Seen: 124 times

Last updated: Sep 17 '11