Yep, and as bonus you get proper cache invalidation, ESI-support and a lot of other really nice features that you probably need when you start having these kinds of issues. Around 30 lines of VCL would replace all of this and make it even faster.
And memcached is not even the best option, using apc with W3 is few times faster than using memcached.
You are talking about two different things here. Memcached is a memory store, while APC is a opcode cacher. W3 seems to be a plugin for Wordpress that serves pre-rendered pages using some mod_rewrite trickery.
Re:WordPress Caching with Nginx and Redis
by mikeschinkel on Saturday May 11, 2013 @11:12PM
(#5692978)
Erm, APC can be used as a memory store, too.
http://www.mysqlperformanceblog.com/2006/09/27/apc-or-memcac...
I meant under W3 there are more than one option for cache storage. http://i.imgur.com/OjbyvF2.png and APC is faster than memcached in a single server environment http://stackoverflow.com/questions/1794342/memcache-vs-apc-f....
I assume that most people using php most likely already have apc installed (or they really should).
Seems he can accomplish the same with Nginx itself (which he's already using -- though not certain of the details if u are serving PHP via nginx itself too).
There is a place for a Memcached/Redis type role in generating a Wordpress page. Tools like W3 Total cache store certain small elements of the page in Memecached. So, could see Redis being used there. But for blind full page caching, Nginx can do that job.