Nginx and Memcache

Maxim Dounin mdounin at mdounin.ru
Sat Oct 23 00:17:22 MSD 2010


Hello!

On Fri, Oct 22, 2010 at 03:24:56PM -0400, midas wrote:

> My problem is that the value coming from memcache is a php serialized
> string content (byte-stream). I was able to change the content send from
> nginx with your suggestion. But I still get errors since the response
> contains invalid characters. 

You should put non-serialized data into memcached.

> BTW is there a way to cache response from memcache in Nginx so that the
> server does not have to keep going to memcache for data? 

No.  It's presumed that memcached is fast enough to not require 
additional caching.

Maxim Dounin



More information about the nginx mailing list