First time here? Check out the FAQ!
3

What may be wrong with using the local memory caching?

After fixing so many issue I manage to get askbot running but still few errors, first error is related to locmem,

here is my error:

WARNING!!! You are using a 'locmem' (local memory) caching backend,
[Wed Mar 20 14:11:04 2013] [error] which is OK for a low volume site running on a single-process server.
[Wed Mar 20 14:11:04 2013] [error] For a multi-process configuration it is neccessary to have a production
[Wed Mar 20 14:11:04 2013] [error] cache system, such as redis or memcached.
[Wed Mar 20 14:11:04 2013] [error] 
[Wed Mar 20 14:11:04 2013] [error] With local memory caching and multi-process setup you might intermittently
[Wed Mar 20 14:11:04 2013] [error] see outdated content on your site.
[Wed Mar 20 14:11:04 2013] [error]

What can I do to fix this?

SocialQA's avatar
265
SocialQA
asked 2013-03-20 14:19:30 -0600
Evgeny's avatar
13.2k
Evgeny
updated 2013-03-22 00:00:19 -0600
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

1

Local memory cache works fine until you have more than one process serving the requests, which is typical in the production deployments.

In that case each process will have it's own cache and therefore served results may depend on the process instance that made the response.

Second disadvantage of local memory cache is inefficient usage of the memory - as you will have multiple copies of the same data cached in the multiple processes.

We've added that warning to alert people of the potential issues.

Evgeny's avatar
13.2k
Evgeny
answered 2013-03-21 23:58:07 -0600
edit flag offensive 0 remove flag delete link

Comments

Thanks Evgeny. Can you tell us how to fix this? I'm getting this error, too.

SwisherSweet's avatar SwisherSweet (2015-02-05 18:52:32 -0600) edit
add a comment see more comments