[I will update these instructions if Evgeny tells me otherwise.]
Follow the memcache setup instructions described here: http://docs.webfaction.com/software/memcached.html and make sure python-memcached is installed.
Then, put the following in your settings.py:
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': 'unix:/home/USERNAME/memcached.sock',
'TIMEOUT': 18000,
'KEY_PREFIX': 'askbot',
}
}
CACHE_TIMEOUT = 18000
CACHE_MIDDLEWARE_ANONYMOUS_ONLY = True
And disable the current CACHE_BACKEND. (The second CACHE_TIMEOUT is necessary because of a small bug.)
Also, disable the following middleware:
'django.middleware.cache.UpdateCacheMiddleware',
'django.middleware.cache.FetchFromCacheMiddleware',
Otherwise you will get errors, like entire pages being cached when they shouldn't.
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 siteAsked: 2012-07-24 23:25:23 -0500
Seen: 109 times
Last updated: Jul 26 '12
How do I check if memcache is working?
Incorrect timestamps in the content displays
Admin settings (as superuser) are not saving
What may be wrong with using the local memory caching?
Why some times Answers are not shown after submit?
Why doesn't settings = cache.get('askbot-livesettings') return anything?
Copyright Askbot, 2010-2011. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.