Nginx – Configuring NGINX to work with memcache for reverse_proxy_cache

memcachenginx

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

Best Answer

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.