Ask Your Question

What may be wrong with using the local memory caching?

asked 2013-03-20 14:19:30 -0600

SocialQA's avatar

updated 2013-03-22 00:00:19 -0600

Evgeny's avatar

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?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2013-03-21 23:58:07 -0600

Evgeny's avatar

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.

edit flag offensive delete link more


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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2013-03-20 14:19:30 -0600

Seen: 510 times

Last updated: Mar 22 '13