Load Times Under 2s: WordPress Speed ImprovementsMay 6, 2018 | By PotentPages | Filed in: hosting.
At this point, you’re going to need to install a couple of plugins: one to allow the WordPress page to benefit from the Redis server, and one to cache the rendered versions of the WordPress site pages so that they don’t have to be generated every time someone tries to access the site.
To have the WordPress installation use the Redis cache, we’ll need to install a plugin. I personally use Redis Object Cache (https://wordpress.org/plugins/redis-cache/) , but you could use another Redis plugin. To set it up, install the plugin by searching for “Redis Object Cache” in the plugins list from the admin section. Click install, and the plugin should be installed.
We will now need to follow the installation instructions on the plugin page, specifically by adding a prefix for use in the Redis cache. Simply add the following line to your wp-config.php file
Reload the plugin, and everything should be working.
The easiest way to cache the rendered pages from your site is to use a caching plugin. To do this, search for and install the “WP Super Cache” plugin. When it’s installed, We need to select “Caching On” on the “Easy” page. On the advanced page, we need to select “don’t cache pages for known users”, “compress pages so they’re served more quickly to visitors”, and “cache rebuild….”. Under the “Preload” tab, select “Preload mode” and then select to preload the cache. This should cache your website’s contents to the folder that we specified in the Nginx configuration file
At this point, if you’ve followed the tutorial from the beginning, you should have your website loading quickly. If your website is still loading slowly, there are a number of speed improvements that can be made.
If you have reached the end of this tutorial, and need the installation done quickly, or if you just want the work all done automatically, we can do that for you (for a fee of $100). We have an automated script that can SSH into your server and run this tutorial from beginning to end (as long as it’s running CentOS 7). If you would like this done for you, please contact us using the form below.
Also, if you require assistance, we provide server consulting starting at $100/hour, and we have a number of scripts that we can use to get your server up and running quickly. Please contact us below if you need further assistance:
- Part 1: Introduction and Planning
Why it’s important to have your pages load in under 2 seconds, and a plan of how we will set up and configure the server.
- Part 2: Installing Software
Initial setup of the server, including installing CentOS7, installing tools, installing SSH and SSL, enabling repositories, and installing support packages.
- Part 3: MySQL, Apache, PHP7, & Composer
- Part 4: PHPMyAdmin & Redis
- Part 5: SSL Certificate & Apache Configuration
- Part 6: FTP & DNS
- Part 7: Installing Nginx
- Part 8: Configuring Nginx
How to set up Nginx configuration files including (with explanations): nginx.conf, Gzip compression settings, visitor browser caching settings, SSL settings, reverse proxy settings for sending data to the Apache server, reverse proxy connection configurations, file access restrictions, and WordPress configuration settings
- Part 9: Adding a WordPress Website
How to add a WordPress website to the server including configuring the DNS Server, adding a verified SSL certificate, either manually or for free using Let’s Encrypt, setting up FTP for your site, configuring Apache, configuring Nginx, uploading your WordPress site files, and importing your MySQL database.
- Part 10: WordPress Website Speed Improvements
Speeding up your WordPress installation using a Redis plugin and a caching plugin.