First time here? Check out the FAQ!

is it locmem related issue or djcelery issue?

Currently I am seeing delays in my site. For an example the points don't get updated right away. In addition sometimes main page says there are two answers and when you go to the question you only see one answer. I have a feeling this is due to locmem cahce because I still get the warning about locmemcached. Also can this be due to some application layer issue where it doesn't invalidate the cache and do a database call.

[Thu Mar 14 18:35:03 2013] [error] WARNING!!! You are using a 'locmem' (local memory) caching backend,
[Thu Mar 14 18:35:03 2013] [error] which is OK for a low volume site running on a single-process server.
[Thu Mar 14 18:35:03 2013] [error] For a multi-process configuration it is neccessary to have a production
[Thu Mar 14 18:35:03 2013] [error] cache system, such as redis or memcached.

This is my current djcelery settings:

#Celery Settings
BROKER_TRANSPORT = "djkombu.transport.DatabaseTransport"

import djcelery

Also I am using celery 2.2.7 with askbot 0.7.48

SocialQA's avatar
asked 2014-01-22 12:45:19 -0500, updated 2014-01-22 18:38:23 -0500
edit flag offensive 0 remove flag close merge delete


add a comment see more comments

1 Answer


This may be because you have multiple processes using locmem cache. In this case each process has its own cache and since some html fragments are cached you may see different content depending on which process provides the response.

Evgeny's avatar
answered 2014-01-28 11:53:11 -0500
edit flag offensive 0 remove flag delete link


Any suggestion to fix this?

SocialQA's avatar SocialQA (2014-01-30 11:03:25 -0500) edit

use a real cache engine for your site, it performs much better after that change :)

Fitoria's avatar Fitoria (2014-01-30 11:04:59 -0500) edit

@Fitoria any guidance on doing that?

SocialQA's avatar SocialQA (2014-01-30 11:12:22 -0500) edit

Look at the django docs on how to set up memcached or redis cache, django-redis has own documentation too.

Evgeny's avatar Evgeny (2014-01-30 12:05:03 -0500) edit
add a comment see more comments