memcached not caching

Maxim Dounin mdounin at
Fri Dec 4 02:43:30 MSK 2009


On Thu, Dec 03, 2009 at 05:37:49PM -0500, rhjheins wrote:

> Currently I am testing nginx as a reverse-proxy/load ballencer and the basic setup is working perfect. But memcached is not caching any content

nginx doesn't store anything in memcached, 
it just uses memcached as another type of backend.

It's up to you to store appropriate data...


> STAT cmd_set 0

... and you obviously don't.

If you want nginx to cache responses from backend - use 
proxy_cache instead.

Maxim Dounin

More information about the nginx mailing list