Live data from Hacker News

WordPress Caching with Nginx and Redis

eamann.com

1–10 of 25 posts

Re: WordPress Caching with Nginx and Redis

#4
post #3

if you're technical enough to set up Redis I'd think you're technical enough to ditch Wordpress silliness and just publish statically.

But you might run the blog with someone who isn't. Or be running the blog for someone else. Setting up varnish is another option that's likely even better (didn't read the details of the post, but it looks like it always hits a php script to get the cache).

Re: WordPress Caching with Nginx and Redis

#6
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

#8
post #6

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.

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

#9
post #8
post #6

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.

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 Meme…

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

#10
post #8
post #6

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.

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 Meme…

And memcached is not even the best option, using apc with W3 is few times faster than using memcached.
Post reply on HN