# How to integrate LiteSpeed Cache into Craft 3

> The LiteSpeed Cache plugin for Craft CMS 3 is no longer maintained. The developers recommend using Blitz instead. This article explains the situation and links you to the Blitz plugin.

Source: https://www.kualo.com/knowledgebase/perf-litespeed/how-to-integrate-litespeed-cache-into-craft-3
Updated: 2026-06-09

---

:::warning
The LiteSpeed Cache plugin for Craft CMS 3 is no longer maintained. The plugin developers recommend using [Blitz](https://plugins.craftcms.com/blitz) as a replacement. We recommend migrating to Blitz rather than continuing to use this plugin.
:::

This guide originally walked you through installing and configuring the LiteSpeed Cache plugin for Craft CMS 3 on your Kualo hosting account. Because the plugin is no longer maintained, the steps below are preserved for reference only. For new installations, please use [Blitz](https://plugins.craftcms.com/blitz) instead.

---

Before you begin, make sure you have enabled LiteSpeed Cache in cPanel. See [How to enable LiteSpeed Cache in cPanel](/knowledgebase/litespeed-cache/how-to-enable-litespeed-cache-in-cpanel) if you have not done this yet.

## Installing LiteSpeed Cache through the dashboard

1. Log into your Craft CMS admin panel.
2. Click the **Plugin Store** menu.

   ![Plugin Store menu](https://kb-cdn.kualo.com/42/d4/42d4ec4dbff27e81b628306d2ce065ec7a2191c8.jpg)

3. Search for **LiteSpeed Cache** in the store.

   ![Searching for LiteSpeed Cache in the Plugin Store](https://kb-cdn.kualo.com/d2/54/d25428769944b6d67e428acee64fb53875b99483.jpg)

4. Click the **LiteSpeed Cache** plugin result, then click **Install**.

   ![Installing LiteSpeed Cache](https://kb-cdn.kualo.com/f3/97/f39764d83e95db86f45d1b36fce11b5c5c8ff8bb.gif)

## Installing LiteSpeed Cache via the command line

SSH access must be enabled on your account before you can use the commands below. Open a ticket with our HelpDesk if you need SSH access enabled.

1. Navigate to your Craft project folder.
2. Run the following Composer command:

```bash
composer require thoughtfulweb/lite-speed-cache
```

## Setting up the LiteSpeed Cache plugin

Once the plugin is installed, complete the following steps to finish the configuration.

1. Log into the Craft CMS dashboard.
2. Go to **Settings > Plugins**.
3. Click the gear icon next to **LiteSpeed Cache** and choose **Install**.
4. Once installed, click the **Settings** link.

   ![LiteSpeed Cache settings](https://kb-cdn.kualo.com/fe/21/fe2126485022250e5f8237e86d3b5727838d998a.gif)

5. Enable **Clear caches per URL** - unless you are using Cloudflare. Because Cloudflare acts as a reverse proxy, per-URL purging is not compatible with it.
6. In the **.lscache Location** box, enter the path below, replacing `USER` with your cPanel username:

   ```
   /home/USER/.lscache/
   ```

7. Click **Save** in the upper right of the page.

   ![Saving LiteSpeed Cache settings](https://kb-cdn.kualo.com/15/a6/15a6485703b50e99faafeabda50dbc99b026d970.jpg)

8. Add the following lines to the **top** of your `.htaccess` file:

```apacheconf
########## Begin - LiteSpeed Cache
<IfModule LiteSpeed>
    RewriteEngine On
    RewriteCond %{REQUEST_METHOD} ^HEAD|GET$
    RewriteCond %{ORG_REQ_URI} !/admin
    RewriteCond %{ORG_REQ_URI} !/index.php/admin
    RewriteRule .* - [E=Cache-Control:max-age=86400]
</IfModule>
########## End - LiteSpeed Cache
```

LiteSpeed Cache should now be active. You can confirm it is working by following the steps in the [Verify if LiteSpeed Cache is working](/knowledgebase/litespeed-cache/verify-if-litespeed-cache-is-working) article.

If you need help with any of the above, please contact our support team via the HelpDesk.

## Purging LiteSpeed Cache from the dashboard

You can manually clear the LiteSpeed Cache at any time from the dashboard.

1. Click the **LiteSpeed Cache** menu in the dashboard.
2. Click the **Clear LiteSpeed Cache** button.

   ![Clearing LiteSpeed Cache](https://kb-cdn.kualo.com/55/50/55503a08faf6dfcca21213eb57f923fc835356df.gif)


---

_Source: Kualo Knowledgebase — https://www.kualo.com/knowledgebase/perf-litespeed/how-to-integrate-litespeed-cache-into-craft-3 · © Kualo Ltd._
