WordPress on Steroids (node.js)

Jens Nilsson on

This article is about separating WordPress from the frontend responsibility, getting rid of the suboptimal hairballs of PHP mixed with HTML that is WordPress-templates and letting Node.js handle rendering and caching while still letting WordPress do what it's good at, being the admin interface.

The setup

The setup uses Nginx, Apache, Node.js and WordPress to be able to have complete control of how a request flows through all the different layers.


Nginx job in this setup is to act as the entry-point for all requests and a reverse-proxy that decides if a request should be handled by Node.js, the WordPress-installation or in the case of images, go straight to the hard drive.