News for hackers. Stuff that matters.
Re:WordPress Caching with Nginx and Redis by vegardx on Saturday May 11, 2013 @10:28PM (#5692876)
You could do exactly the same with nginx or Varnish acting as reverse caching proxies. Cool hack, but nothing I would ever run in production when you have all the other good tools at your disposal. Tools that are proven and that actually scale.
Re:WordPress Caching with Nginx and Redis by arn on Saturday May 11, 2013 @10:38PM (#5692901)
Yep, here, Redis is an unnecessary component, since he is caching the entire HTML page it seems, in Redis.

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.

Re:WordPress Caching with Nginx and Redis by vegardx on Saturday May 11, 2013 @10:41PM (#5692904)
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.
Re:WordPress Caching with Nginx and Redis by pavs on Saturday May 11, 2013 @10:47PM (#5692918)
And memcached is not even the best option, using apc with W3 is few times faster than using memcached.
Re:WordPress Caching with Nginx and Redis by vegardx on Saturday May 11, 2013 @10:53PM (#5692927)
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...

Re:WordPress Caching with Nginx and Redis by pavs on Saturday May 11, 2013 @11:06PM (#5692960)
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).
Re:WordPress Caching with Nginx and Redis by wyck on Sunday May 12, 2013 @12:55PM (#5694887)
Most people on WordPress and/or using PHP are on shared servers and thus cannot use APC.