Wordpress Hosting | How to setup Litespeed Caching
In this guide, we will walk you through the steps to configure LiteSpeed Cache for your WordPress website. Properly setting up caching can dramatically improve your website's performance by reducing load times, minimizing server load, and optimizing how content is delivered to your users.
LiteSpeed Cache is a powerful all-in-one site acceleration plugin that includes an exclusive server-level cache and a collection of optimization features. It’s designed specifically for WordPress and takes full advantage of LiteSpeed's web server capabilities. This ensures that your website not only runs faster but also handles higher traffic with ease.
By enabling caching, your website will store copies of dynamic content and serve them quickly to visitors without the need to generate the page repeatedly. This results in reduced server processing times, less database load, and faster page load times for your users. Whether you run a small blog or a high-traffic e-commerce site, caching is an essential step in optimizing your site’s performance and ensuring a smooth user experience.
Make sure to also enable cache crawler with litespeed here
-
When you order your WordPress hosting, you will receive WordPress Core with the LiteSpeed Cache and Patchstack plugins pre-installed, so there's no need to install them yourself.
-
Start by logging into your Enhance control panel. You can log in to your control panel from https://billing.hyperlayer.net/
-
Once logged into the Enhance control panel, go to
Advanced > Optimization
in the dropdown. -
Now, under
Opcode caching
, enable it. -
Go to
Advanced > Developer tools
in the dropdown.
- in the
PHP extensions
we must enablebrotli
andAcpu
Brotli: A modern compression algorithm that enhances website performance by reducing file sizes for faster load times and lower bandwidth usage. It offers superior compression rates compared to gzip.
APCu: A PHP caching extension that boosts performance by storing frequently accessed data in memory, reducing server load and speeding up script execution. Ideal for improving response times in dynamic PHP applications.
We also recommend using the latest PHP version to benefit from improved performance and enhanced security.
See how to configure your PHP version here:
-
Next, we will need to enable
Redis
.- Click
Redis
on the left. This will take you to the bottom of the page.
- You can now enable
Redis
. You do not need to do anything else here but make a note of theRedis
port, which is6379
. This will never change. We will come back to this later.
- Click
-
Now, click the home icon on the top left and then click the
Login to admin
button. This will take you to the WordPress admin. -
Once logged into the WordPress admin, click LiteSpeed Cache on the left, then Presets.
-
Click
Apply preset
on theAdvanced (Recommended)
preset. -
Next, we are going to enable object caching, which is where Redis is used. Click LiteSpeed Cache on the left, then Cache.
-
Once in Cache, click the Object tab.
-
- Set Object Cache to
On
- Choose
Redis
for the Method - Host must be set to
localhost
- Port must be
6379
- Set Object Cache to
-
Click
Save Changes
at the top right. -
If everything worked correctly, you will see
Redis Extension: Enabled
andConnection Test: Passed
. -
You have now fully set up caching for WordPress.
Make sure to also enable cache crawler with litespeed here