Out of the box performance of WordPress is quite fast with the latest PHP 7 enabled, however once you start to add increased amounts of functionality (such as eCommerce platforms) this performance can slowly degrade. If you have a basic website where users don’t login or make purchases, you can simply increase the performance through the use of a page cache such as W3 Total Cache. This will significantly boost the performance of your site. However, if you have users logging on or running any form of shopping cart, it means these users will no longer see any benefit to the page cache (as it needs to be specifically produced for them).
To increase the performance and the amount of users your site can serve, you can enable object caching. This is at a slightly higher level compared to full page caching, but benefits all users of the site (including administrators). As we already use and recommend W3 Total Cache, this article will guide you through the process of configuring it to use Redis as the object cache.
- Login as the root user to your server.
- If you’re running a CentOS 7 operating system, you can install Redis with the following:
(Substitute your websites current PHP version into the last command):
yum install redis systemctl enable redis systemctl start redis /opt/plesk/php/7.0/bin/pecl install redis
- Login to your WordPress site, then go to to Performance -> General Settings.
- Then, scroll down to Object Cache to enable and select Redis for the Object Cache Method:
- After saving the settings, test that the site works as expected.
Conetix offers configuration of Redis on our Managed WordPress Server plan at no additional cost. If you’re looking at boosting your WordPress site performance, please don’t hesitate to contact us to discuss your options further.