Redis Cache For Speeding Up Your WordPress Website

A few weeks back, we wrote about how reducing MySQL queries, and suggested that Redis was one available option for those who wanted to take their caching to the next level. Now, a quick tutorial on installing Redis and configuring Wordpress to communicate with Redis as a caching layer. Redis is an open source data structure store, and it's popular among Wordpress users for its simplicity and highly optimized approach to caching, which can help pages load significantly faster. Why caching? In a normal Wordpress installation, when a user browses to the index page (index.php), the MySQL database is queried for the posts within the loop. This is usually pretty quick, but if you have multiple loops or many concurrent users, the sheer volume of database queries can become overwhelming for your VPS. A caching layer like Redis will query the database once and create a plain HTML file that it will serve instead of normal index.php file, which will boost page loads and dramatically cut back on database queries.

Prerequisites

Step 1. Installing Redis

Redis is available in the default package repositories for all our OS options, so installation is a breeze.
Continue reading this article
by subscribing to our newsletter.
Subscribe now