Ask Your Question
1

Incorrect timestamps in the content displays

asked 2012-03-19 15:59:19 -0500

alekcac gravatar image alekcac
11 1 1 2

updated 2012-03-19 19:22:57 -0500

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

I have problems with incorrect (outdated) datetime stamps for questions when I am using memcached.

Fragment of settings.py:

CACHE_TIMEOUT = 10
CACHE_MIDDLEWARE_ANONYMOUS_ONLY = True
CACHES = {
    'default': {
        'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
        'LOCATION': 'unix:/home/%username%/memcached.sock',
        'TIMEOUT': 10,
        'KEY_PREFIX': 'askbot'
    }
}

Could you provide me any solutions?

delete close flag offensive retag edit

Comments

On main page http://askbot.org/en/questions/ I see that my question was asked 0 mins ago, when I open question page (http://askbot.org/en/question/6820/askbotmemcached) I see - 8 mins ago. Also sometimes on main page http://askbot.org/en/questions/ I see 0 views for my quesion and sometimes 1 views. Why does it happen?

alekcac ( 2012-03-19 16:12:02 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2012-03-19 19:22:01 -0500

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

Yes, we have some issues with displaying dates, it is not a memcached issue - the cache appears to work correctly.

I think we will have to change to calculating the "time ago" type of information using javascript from a standard timestamp.

Most of these issues started showing up when we started caching harder to compute HTML fragments aggressively. The benefits are reduced database activity and faster response times, but we have to fix the edges like you've noticed.

link publish delete flag offensive 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
1 follower

subscribe to rss feed

Stats

Asked: 2012-03-19 15:59:19 -0500

Seen: 21 times

Last updated: Mar 19 '12