News for hackers. Stuff that matters.
Re:Wordpress.com serves 70k requests/second using Nginx by bad_user on Thursday September 27, 2012 @02:25AM (#4579608)
I don't know how the caching plugin in WP works, however the most difficult part of caching is always cache invalidation, which is the reason why Memcache is better than an in-memory cache, even for a single server, because then you have the flexibility of invalidating cache entries from a background process that does not run on that server.

It's also great to have the flexibility of adding more servers in case of a huge spike, even if you are running on only one server. Like on Heroku, where you can just increase the number of dynos in realtime. Doing that without a central cache that every server can access can break your MySQL because each new server will have a cold cache.

Re:Wordpress.com serves 70k requests/second using Nginx by hpatoio on Friday September 28, 2012 @12:00PM (#4586170)
If you want a smart cache invalidation system for NGINX please have a look at this plugin http://bit.ly/nginxmanager

Pages are cached on NGINX for not logged in user, and when a new content is published all and only the pages that contains that content are deleted from the cached and regenerated at the next request.