DEPRECATION WARNING

This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.

Configuration ReferenceΒΆ

On the nginx-side you have to add one location-directive to your configuration:

location / {
         default_type text/html;
         set $memcached_key "$uri?$args";
         memcached_pass 127.0.0.1:11211;
         error_page 404 502 504 = @fallback;
}

As you can see, you need a "fallback-location" if the requested page is not cached. All you have to do is to change your existing location-directive from

location / {

to

location @fallback {

More specific documentation can be found at the nginx memcached module documentation.