Skip to main content

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.

info

Make sure to also enable cache crawler with litespeed here

  1. 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.

  2. Start by logging into your Enhance control panel. You can log in to your control panel from https://billing.hyperlayer.net/

  3. Once logged into the Enhance control panel, go to Advanced > Optimization in the dropdown.

  4. Now, under Opcode caching, enable it.

  5. Go to Advanced > Developer tools in the dropdown.

  1. in the PHP extensions we must enable brotli and Acpu

info

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.

tip

We also recommend using the latest PHP version to benefit from improved performance and enhanced security.

See how to configure your PHP version here:

  1. 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 the Redis port, which is 6379. This will never change. We will come back to this later.

  2. 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.

  3. Once logged into the WordPress admin, click LiteSpeed Cache on the left, then Presets.

  4. Click Apply preset on the Advanced (Recommended) preset.

  5. Next, we are going to enable object caching, which is where Redis is used. Click LiteSpeed Cache on the left, then Cache.

  6. 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

  7. Click Save Changes at the top right.

  8. If everything worked correctly, you will see Redis Extension: Enabled and Connection Test: Passed.

  9. You have now fully set up caching for WordPress.

info

Make sure to also enable cache crawler with litespeed here