LiteSpeed Cache is a caching plugin for WordPress that helps improve the performance of a website by storing frequently accessed data in a cache. This allows the website to load faster for visitors by reducing the amount of time it takes for the server to process and retrieve the necessary data.

LiteSpeed Cache is built for the LiteSpeed web server, which is known for its high performance and low resource usage. In this article, we will walk through the steps of installing the LiteSpeed plugin on your WordPress site and explain how to configure it correctly.

Why Use LiteSpeed Cache Plugin On WordPress? 

One of the key benefits of using LiteSpeed Cache is that it can significantly improve website loading speed by caching website content and resources. Caching involves storing a copy of a webpage’s content and resources, such as images and CSS files, on the server. When a user requests the same page, the server can quickly serve the cached version, rather than having to generate the page from scratch each time. This can greatly reduce the amount of time it takes for a page to load.

This can lead to a better user experience for visitors, which can help increase engagement and reduce bounce rates. Additionally, a faster website can also lead to improved search engine rankings, as search engines such as Google take page load speed into account when determining search rankings.

LiteSpeed Cache also includes other features such as minification and concatenation of HTML, CSS, and JS files to reduce the size of resources. This also helps to decreases the website loading time.

LiteSpeed Cache also supports CDN integration, which can further speed up page loading times by delivering content and resources to users from a server that is geographically closer to them.

Explanation of How to Install the Plugin on a RunCloud Server

Installing the LiteSpeed Cache plugin on a RunCloud server is a straightforward process. Here are the steps you can follow to install the plugin:

  • In the WordPress dashboard, navigate to the “Plugins” menu, and click on the “Add New” button.
  • In the “Add Plugins” page, type “LiteSpeed Cache” in the search bar, and click on the “Search Plugins” button.
LiteSpeed Cache plugin homepage
  • From the search results, select the “LiteSpeed Cache” plugin by LiteSpeed Technologies, and click on the “Install Now” button.
  • Once the installation is complete, click on the “Activate” button to activate the plugin.
  • After the plugin is activated, you will see a new “LiteSpeed Cache” menu item in the WordPress dashboard.
LiteSpeed Cache menu in wordpress
  • Now navigate down to the “General” tab and click on “Request a Domain key” to start using the plugin.

Step-By-Step Instructions On How To Configure The Plugin For Optimal Performance

These are the steps we would advise you follow to configure the LiteSpeed Cache plugin for optimal performance on a RunCloud server:

  1. In the WordPress dashboard, navigate to the “LiteSpeed Cache” menu and click on the “Presets” tab. This tab contains some recommended presets, which are designed to work well for most websites. Pick the one closest to your requirements; we’ll fine tune the individual settings later. 
  2. Under the “Cache” tab:
    • Make sure that “Enable Cache” and “Cache Login Page” are both enabled.
    • Under “Cache TTL”, set the time for which a page will be cached before it needs to be rebuilt. If the content on your website is updated frequently, then you should consider a shorter time period like 5 minutes, if most of the content is static then you can pick longer timeframes such as 1 day, or even a week.
    • Under “Purge All on Upgrade”, select “Auto Purge” if you want the plugin to automatically purge the cache when you update WordPress or any plugins. This is useful because if you’ve recently updated your website’s content or design, you’ll want visitors to see those changes.
    • Under the “Excludes” section you can exclude certain pages or posts from being cached.
    • Enable “Browser Cache” and “Object Cache” to store static files locally in the user’s browser.
LiteSpeed Cache settings
  1. In the “CDN” tab:
    • Turn on “QUIC.cloud CDN“ and enable “CDN Mapping”.
    • Configure the integration with Cloudflare or a content delivery network (CDN) by switching on the “Cloudflare API” option and entering the necessary information.
  2. Under the  “Image Optimization” tab:
    • Turn on “Auto Request Cron” to automatically optimize images on a schedule.
    • Make sure to turn on “Image WebP Replacement” to start using WebP versions of images. This significantly improves load times by replacing images with a newer image format.
  3. Under the “Page Optimization” tab:
    • Enable “CSS Minification”, “JS Minification”, and “HTML Minification” to minify the appropriate files.
    • Enable “DNS Prefetch Control“ to speed up the loading times of all URLs.
    • Enable “Lazy Load Images” and “Optimize Images on Upload” to optimize image loading and reduce page load times.
    • Turn on “Load JS Deferred” to defer JavaScript execution.
LiteSpeed Cache js settings
  1. Once you have configured the plugin settings, click on the “Save Changes” button to save the settings.

It’s important to note that the settings may vary depending on the website structure and the specific needs of the website. Therefore, it’s recommended to consult the plugin documentation for detailed information on configuration and optimization options.

Testing Performance Improvements

It’s always a good idea to test the website performance both with and without the plugin, and compare the results to see the actual impact of the plugin on your website’s performance. 

There are several tools available for testing website performance. Some popular options include:

  • Google PageSpeed Insights: This tool analyzes a webpage and provides a score, and suggestions for how to improve its performance.
  • GTmetrix: This tool analyzes a webpage and provides a score, along with detailed information about the page’s load time and resources.
  • Lighthouse: This is an open-source tool that can be run either as a browser extension, or in the command line. It analyzes web pages and provides performance metrics, and suggestions for improvements.

Troubleshooting Tips For Common Issues

There are several common issues that users may experience when using the LiteSpeed Cache  plugin on a RunCloud server. Below are some troubleshooting tips that can help resolve these issues:

  • Cache not working: Make sure that the LiteSpeed web server and the LiteSpeed Cache plugin are both installed and configured correctly. Also, check the plugin settings to ensure that caching is enabled for the appropriate pages and posts.
  • Integration with Cloudflare or CDN not working: LiteSpeed Cache can integrate with Cloudflare or a content delivery network (CDN) to serve cached pages and resources to visitors. If the integration is not working, check the plugin settings to ensure that the appropriate integration is enabled and configured correctly.
  • Conflicts with other plugins or themes: Conflicts with other plugins or themes can cause issues with LiteSpeed Cache. In such cases, deactivate or remove any conflicting plugins or themes, and check if the issue is resolved.
  • Incorrect page cache: If LiteSpeed Cache is not caching pages correctly, make sure that the plugin settings are configured correctly for your website, and clear the cache.
  • Not seeing any improvements: In some cases, even after proper configuration, you may not see any improvements in website performance. One possible reason is that the website is already performing well, and LiteSpeed Cache is not able to make any significant improvements. In such cases, it’s always a good idea to monitor the website performance, and compare the results both with and without the plugin.

After Action Report – Monitoring Site Performance

LiteSpeed Cache is a highly effective caching plugin for WordPress that can significantly improve website performance. 

As your development projects become more complex and your team grows, it’s essential to have more control over your servers, and it’s always a good idea to test and measure the performance difference both with and without the plugin.

RunCloud provides a comprehensive solution for managing your cloud servers, deploying websites and web applications, and monitoring server health – all through a secure and user-friendly management panel. Sign up for a free trial today, and see the difference for yourself.