Sometimes, it’s quicker to spoon WordPress instead of another system to do a blog.
Now, it’s time to have a cache and gain good improvement about rendering.
1. The right web server
It’s also possible to implement cache at the Nginx level but I don’t use it. I prefer improvement related to metrics.
2. JS/CSS/HTML optimizer (optional)
3. In-memory caching
WordPress will refresh cache inside Redis after posting, commenting… and all readers will go to Redis. It’s a good improvement and a new way to don’t use Varnish or Nginx cache immediately.
It’s the last step with Cloudflare.
The free version works great for personal sites/blogs.
What are the next possible steps to improve performances:
- replace PHP-FPM with HHVM
- replace WordPress code (core + plugin) to read from Redis by Lua code directly inside Nginx configuration
- activate Nginx cache
- Migrate WordPress to a static website (Jekyll, Hugo)
- Build a 2 steps prod :
– edit and publish to WordPress offline (internal)
– CI/CD to convert WordPress to static website and push rendered static website to a public server
Don’t forget to protect your WordPress