5 ms·
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 (
by arn 13y ago
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.
- vegardx 13y agoYep, 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.
- pavs 13y agoAnd memcached is not even the best option, using apc with W3 is few times faster than using memcached.
- vegardx 13y agoYou 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.
- pavs 13y agoI meant under W3 there are more than one option for cache storage. http://i.imgur.com/OjbyvF2.png 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.. 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).
- wyck 13y agoMost people on WordPress and/or using PHP are on shared servers and thus cannot use APC.
- mikeschinkel 13y agoErm, APC can be used as a memory store, too. http://www.mysqlperformanceblog.com/2006/09/27/apc-or-memcached/ http://www.mysqlperformanceblog.com/2006/09/27/apc-or-memcac...
- deleted 13y ago[deleted]