Hi, I know this thread is old, but I've got the same problem and I foud this thread on google. To solve this problem, simply use "set $memcached_key $request_uri;" instead of "set $memcached_key $uri;" ! It work well for me ;) Posted at Nginx Forum: http://forum.nginx.org/read.php?2,738,41474#msg-41474