Skip to Content

How to speed up your WordPress site with Redis Cache on AWS Lightsail

Posted on October 28, 2022 by

Categories: AWS


This video tutorial will demonstrate how to install and set up the Redis cache. Your database queries will be cached in memory by Redis, an object level caching system. Although it is technically a data storage in and of itself, utilising it in conjunction with your WordPress database will speed up your website.

Additionally, object-level caching differs from a CDN; if you’re interested, check out my video guide on how to set up a Lightsail CDN service with WordPress. When a visitor accesses your website, the static assets are provided from the nearest location, resulting in a quicker response time. CDN caches your website’s static assets at the edge level by duplicating all your pictures, CSS, JS, and other static files worldwide. Your dynamic requests are effectively being cached in memory by Redis, which also speeds up the website.

Keep in mind that for this example, I’m using the Bitnami WordPress blueprint in AWS Lightsail. Some of these instructions may alter slightly if your LAMP/WordPress configuration differs. You will also need a dedicated virtual machine for these tasks or complete SSH access to your server instance. This is not for shared hosting users; however, if your hosting company has already completed all these setups, you might only need to follow the WordPress instructions. Consult your hosting company. It’s time to change hosting companies if they don’t have this and won’t activate it for you. It’s an excellent idea to go from shared hosting to AWS Lightsail.