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?

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
SocialQA's avatar
265
SocialQA
asked 12 years ago
Evgeny's avatar
13.2k
Evgeny
updated 12 years ago

Comments

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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
answered 12 years ago
link

Comments

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

SwisherSweet's avatar SwisherSweet (10 years ago)
see more comments