Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there any way to configure nginx to use memcache for storing cache data, as opposed to using files stored on hard drive?

share|improve this question
up vote 5 down vote accepted

The Nginx HttpMemcachedModule allows the use of Memcached as storage, but does not store HTTP headers with data - all pages served via Memcached storage have the default Content-Type and do not honor Last-Modified/If-Modified-Since headers and proper 304 Not Modified header.

The Enhanced Nginx Memached Module is based on the standard module and has additional features which include storing HTTP headers together with data honoring the required HTTP headers.

share|improve this answer

Probably with HttpMemcachedModule.

Also, consider the StackOverflow thread title "How to configure NGINX with Memcache to serve HTML"

400% improvement? Yes please.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.