---
title: "How to Use LiteSpeed Cache for WordPress"
description: "Caching your WordPress site content is a recommended way to improve performance and reduce server usage. The LiteSpeed Cache plugin is a popular tool to easily implement site caching. It also offers..."
url: https://www.inmotionhosting.com/support/edu/wordpress/plugins/how-to-use-litespeed-cache/
date: 2021-02-08
modified: 2023-07-06
author: "InMotion Hosting Contributor"
categories: ["WordPress Plugins"]
type: post
lang: en
---

# How to Use LiteSpeed Cache for WordPress

![Learn How to Optimize Your WordPress Site with the LiteSpeed Cache Plugin](https://www.inmotionhosting.com/support/wp-content/uploads/2021/02/How-to-Use-LiteSpeed-Cache-for-WordPress-1024x538.png)

Caching your WordPress site content is a recommended way to improve performance and reduce server usage. The LiteSpeed Cache plugin is a popular tool to easily implement site caching. It also offers a full suite of WordPress optimization tools to ensure your site delivers the best possible customer experience.

Learn how to optimize your WordPress site using the [LiteSpeed Cache plugin](https://wordpress.org/plugins/litespeed-cache/) for WordPress. 

You will need a [QUIC.cloud](https://quic.cloud/) account in order to complete this guide. This account is free to start but may require an upgrade based on usage.

- [Install and Setup LiteSpeed Cache](#install)
- [Enable Caching](#cache)
- [How to Purge All Cache](#purge)
- [LiteSpeed Cache Crawler](#crawl)
- [WordPress Optimization Tools](#tools)

![How to Use LiteSpeed Cache for WordPress](https://i.ytimg.com/vi_webp/TuD-Rpj70OQ/maxresdefault.webp)

*Don’t have time to read our full article? Watch our walk-through video.*

## Install and Setup LiteSpeed Cache

First, you will need to install the LiteSpeed cache plugin, then add your domain to your QUIC.cloud account since it is required. Here are the steps.

1. [Install and activate the LiteSpeed Cache plugin](https://www.inmotionhosting.com/support/edu/wordpress/plugins/install-wordpress-plugins/) by LiteSpeed Technologies.
2. Now that the plugin is installed we need to setup the QUIC.cloud account. Click the** LiteSpeed Cache** then **General** link in your navigation menu.
3. On the *General Settings* page click the **Request Domain Key** button.![Requesting a Domain Key](https://www.inmotionhosting.com/support/wp-content/uploads/2021/02/request-domain-key.png)
4. Once your domain key has been requested, it may take a few minutes to be added to your WordPress site. After a couple of minutes, click the **General** link under *LiteSpeed Cache* to refresh the page. You should then see a message stating “ Congratulations, your Domain Key has been approved! The setting has been updated accordingly.”![Setup Domain Key](https://www.inmotionhosting.com/support/wp-content/uploads/2021/02/domain-key-approved.png)
5. On the right side of the page, click the **Link to QUIC.cloud **button.
6. Login to your QUIC.cloud account. You will then be directed back to your WordPress Dashboard.
7. Enter your [shared IP address](https://www.inmotionhosting.com/support/edu/cpanel/how-to-find-your-shared-ip-address-of-your-server-in-cpanel/) in the **Server IP** field.
8. Click the **Save Changes** button.

## Enable Caching

Now that you have the LiteSpeed cache plugin installed and set up, you should turn the caching features on. Here are the steps.

1. [Login to your WordPress Dashboard](https://www.inmotionhosting.com/support/edu/wordpress/logging-into-wordpress-dashboard/).
2. Click **LiteSpeed Cache** then **Cache** in your navigation menu.![LiteSpeed Cache Settings](https://www.inmotionhosting.com/support/wp-content/uploads/2021/02/cache-settings.png)
3. Set the **Enable Cache** option to **ON**. This will cause the plugin to begin caching your site content.![Enabling Cache](https://www.inmotionhosting.com/support/wp-content/uploads/2021/02/enable-cache.png)
4. You can then scroll down and choose your settings as needed. There are also additional tabs you can use to access more settings. For detailed information check out the official LiteSpeed Cache [Beginner’s guide](https://docs.litespeedtech.com/lscache/lscwp/beginner/).![Cache Option Tabs](https://www.inmotionhosting.com/support/wp-content/uploads/2021/02/cache-options.png)
5. Click the** Save Changes** button after choosing your settings.

## How to Purge All Cache

1. [Login to your WordPress Dashboard](https://www.inmotionhosting.com/support/edu/wordpress/logging-into-wordpress-dashboard/).
2. Click the **LiteSpeed Cache** then **Toolbox** link in your navigation menu.
3. Click the **Purge All** button. You are finished when you see a message stating “Purged all caches successfully.”![Purge All Cache](https://www.inmotionhosting.com/support/wp-content/uploads/2021/02/purge-all.png)

## LiteSpeed Cache Crawler

The crawler tool reviews your site for old content and updates the existing cache. This ensures that visitors see the most up-to-date content when they view your website. For example, if you updated a page’s content recently, a visitor may see the older version “cached” version of the page.

You can run the crawl manually or set up a cron job to automatically crawl your site on a set schedule. Here are the steps.

1. [Login to your WordPress Dashboard](https://www.inmotionhosting.com/support/edu/wordpress/logging-into-wordpress-dashboard/).
2. Click the **LiteSpeed Cache** then **Crawler** link in your navigation menu.
3. Click the Manually run button to start a crawl immediately.![Perform a Manual Crawl](https://www.inmotionhosting.com/support/wp-content/uploads/2021/02/manual-crawl.png)
4. This will take some time to complete. You can click the **Show crawler status** button to see the progress.![Viewing Crawl Status](https://www.inmotionhosting.com/support/wp-content/uploads/2021/02/show-crawler-status.png)
5. To set up an automatic crawl click the **General Settings** tab.
6. You can then select your crawl settings.
7. Switch the *Crawler* option to **ON**.![Enable Crawling Cron ](https://www.inmotionhosting.com/support/wp-content/uploads/2021/02/enable-crawler.png)
8. Click the **Save Changes** button.

It will now automatically re-crawl your site on the set interval and update your site cache.

## WordPress Optimization Tools

Now that you have your site caching set up, we will go over the additional tools available that are included with the LiteSpeed Cache plugin. These can help improve the performance of your WordPress site.

### CDN Tools

A **content distribution network** (CDN) stores parts of your content such as images on a separate server from your website. These CDN servers are typically optimized for a specific type of content. Often they are also in different locations so they can “distribute” the content globally. 

Here is how to enable the CDN settings in the LiteSpeed Cache plugin. You will also need to enable the CDN service in your QUIC.cloud account.

1. [Login to your WordPress Dashboard](https://www.inmotionhosting.com/support/edu/wordpress/logging-into-wordpress-dashboard/).
2. Click **LiteSpeed Cache** then **CDN** in your navigation menu.
3. Set the *QUIC.cloud CDN* option to **ON**.![Turning CDN On](https://www.inmotionhosting.com/support/wp-content/uploads/2021/02/enable-cdn.png)
4. Click the **Save Changes** button.
5. Login to your [QUIC.cloud](https://quic.cloud/) account.
6. Select your site from the **Domains** list.
7. Under *Service* click the **CDN** option.
8. Click the Enable CDN button.![Enabling CDN Service](https://www.inmotionhosting.com/support/wp-content/uploads/2021/02/enable-quic-cdn.png)
9. Select the “**I want to use CNAME**” option.![Using CNAME Record](https://www.inmotionhosting.com/support/wp-content/uploads/2021/02/use-cname.png)
10. You must then [create a CNAME record](https://www.inmotionhosting.com/support/domain-names/create-cname-record/) with the provided text.
11. Click the **Continue** button. The CDN will then begin working once your CNAME change has been verified. Please note that this change may take up to 24 hours to [propagate](https://www.inmotionhosting.com/support/domain-names/dns-nameserver-changes/complete-guide-to-dns-records/#propagation).

### Image Optimization

1. [Login to your WordPress Dashboard](https://www.inmotionhosting.com/support/edu/wordpress/logging-into-wordpress-dashboard/).
2. Click **LiteSpeed Cache** then **Image Optimization** in your navigation menu.
3. Click the **Gather Image Data** button. This option will only appear if you have uploaded images to your site.![Caching Image Data](https://www.inmotionhosting.com/support/wp-content/uploads/2021/02/gather-image-data.png)
4. You can then click the** Send Optimization Request** button. It will then push your images to the QUIC.cloud account.![Optimize Images](https://www.inmotionhosting.com/support/wp-content/uploads/2021/02/send-optimization-request.png)

### Page Optimization

The LiteSpeed Cache plugin includes a wide array of page optimization features, we’ll now show you how to access them. Since specific site setup can differ, we recommend only adjusting settings that you are familiar with. Also, test your website extensively after making any changes here. 

1. [Login to your WordPress Dashboard](https://www.inmotionhosting.com/support/edu/wordpress/logging-into-wordpress-dashboard/).
2. Click **LiteSpeed Cache** then the **Page Optimization** link in your navigation menu.
3. You can then choose your **CSS** optimization settings.
4. You can click the additional tabs to access more page optimization options.![Page Optimization Options](https://www.inmotionhosting.com/support/wp-content/uploads/2021/02/page-optimization-tabs.png)
5. Click the **Save Changes** button after making any changes.
6. Be sure to Purge All Cache as described above.

### Database Optimization

Keeping your database free of old or unused content is another important way to ensure your site is running smoothly. For example, you can use this plugin to quickly delete all “Spam” and “Trashed” comments, or “Post Revisions” with just a single click. 

1. [Login to your WordPress Dashboard](https://www.inmotionhosting.com/support/edu/wordpress/logging-into-wordpress-dashboard/).
2. Click **LiteSpeed Cache**, then the **Database** link in your navigation menu.
3. You can then select the specific database element that you want to clean up. You can also click the **Clean All** button to remove them all at once. It will immediately perform the cleanup process.![Optimize WordPress Database](https://www.inmotionhosting.com/support/wp-content/uploads/2021/02/database-optimization.png)

Now you know how to optimize your site using the LiteSpeed Cache plugin for WordPress. Check out our [WordPress Education Channel](https://www.inmotionhosting.com/support/edu/wordpress/) for hundreds of walk-through guides.

Become a master of [WordPress plugins](https://www.inmotionhosting.com/support/edu/wordpress/plugins/)! Protect, optimize, secure, and expand the functionality of your website easily with the help of WordPress plugins!

Improve the performance and security of your WordPress website with our [WordPress Hosting plans](https://www.inmotionhosting.com/wordpress-hosting?mktgp=t&utm_source=supportcenter&utm_medium=link&utm_campaign=supportcenter).
