PHPackages                             thoughtfulweb/lite-speed-cache - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. thoughtfulweb/lite-speed-cache

AbandonedArchivedCraft-plugin

thoughtfulweb/lite-speed-cache
==============================

Clear the LiteSpeed cache on page save.

1.2.7(5y ago)94.8k3[2 issues](https://github.com/scaramangagency/craft-litespeedcache/issues)MITPHP

Since Apr 6Pushed 5y ago2 watchersCompare

[ Source](https://github.com/scaramangagency/craft-litespeedcache)[ Packagist](https://packagist.org/packages/thoughtfulweb/lite-speed-cache)[ RSS](/packages/thoughtfulweb-lite-speed-cache/feed)WikiDiscussions 3.0.0 Synced today

READMEChangelog (6)Dependencies (1)Versions (15)Used By (0)

> ⚠️ ⚠️ ⚠️
>
> This plugin is EOL. Minor patches may be issued. For a robust static cache solution, try [Blitz](https://putyourlightson.com/plugins/blitz).

CraftCMS LSCache Purge for Craft CMS 3.x
========================================

[](#craftcms-lscache-purge-for-craft-cms-3x)

PURGE the LiteSpeed Cache on saving entries.

Installation
------------

[](#installation)

To install the plugin, search for **LiteSpeed Cache** on the Plugin store, or install manually with the following instructions:

1. Open your terminal and go to your Craft project:

    ```
     cd /path/to/project

    ```
2. Then tell Composer to require the plugin:

    ```
     composer require thoughtfulweb/lite-speed-cache

    ```
3. In the Control Panel, go to *Settings → Plugins* and click the “Install” button for **LiteSpeed Cache**.

Use
---

[](#use)

### On Page Save

[](#on-page-save)

Choose whether or not to clear caches by URL, and set the directory where your LSCache folder is located in the plugin settings. If you do not select the per-URL option, all of the cached content in the LSCache folder will be removed on every page save.

### Manually

[](#manually)

If you just want to nuke the whole cache folder at once, you can go opt to **Force Clear LiteSpeed Cache** in the plugins CP section. Clicking the clear button will remove all of the cached content in the LSCache folder.

### Forms

[](#forms)

If you have forms on your website and you're using CSRF protection, you want to either:

1. Make an AJAX call to a plugin/module action that [outputs your CSRF token](https://docs.craftcms.com/api/v3/craft-web-request.html#method-getcsrftoken) and use the result to update your CSRF input.

```
{% js %}
    $(function() {
        $.get('/your/controller/action', function(data) {
                $('form.csrf').prepend('');
        });
    });
{% endjs %}

```

2. Choose to not cache the page at all using the following Twig header.

```
{% header "X-LiteSpeed-Cache-Control: no-cache" %}

```

**If you use the standard `{{ csrfInput() }}` inline, the tokens will be cached by Litespeed and all of your form submissions will fail.**

Requirements
------------

[](#requirements)

This plugin requires Craft CMS 3.0.0 or later.

Notes
-----

[](#notes)

If you're using per-URL purging, the plugin taps into Craft's native caching functionality, meaing you **must** use `{% cache %}` tags so that a cache record can be found on page save. If you don't have a cache record for the page you're saving, the plugin doesn't know it needs to PURGE that page, so won't.

### Cloudflare

[](#cloudflare)

Due to CloudFlare being a reverse proxy, you cannot use CloudFlare and still use per-URL purging. Either do not route through CloudFlare, or just enable the global purge.

###  Health Score

35

—

LowBetter than 81% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 97.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~73 days

Recently: every ~214 days

Total

15

Last Release

1885d ago

Major Versions

1.2.7 → 3.0.0.x-dev2021-01-21

### Community

Maintainers

![](https://www.gravatar.com/avatar/c6dceab1a706f7546b922c9bacd9168fa94b7ab4e958ed9b36de8a20e296af5f?d=identicon)[scaramangagency](/maintainers/scaramangagency)

---

Top Contributors

[![jsmrtn](https://avatars.githubusercontent.com/u/1694957?v=4)](https://github.com/jsmrtn "jsmrtn (95 commits)")[![JorgeAnzola](https://avatars.githubusercontent.com/u/15676614?v=4)](https://github.com/JorgeAnzola "JorgeAnzola (2 commits)")

---

Tags

cmsCraftcraftcmscraft-pluginlitespeed cache

### Embed Badge

![Health badge](/badges/thoughtfulweb-lite-speed-cache/health.svg)

```
[![Health](https://phpackages.com/badges/thoughtfulweb-lite-speed-cache/health.svg)](https://phpackages.com/packages/thoughtfulweb-lite-speed-cache)
```

###  Alternatives

[verbb/image-resizer

Resize assets when they are uploaded.

127266.8k5](/packages/verbb-image-resizer)[pennebaker/craft-architect

CraftCMS plugin to generate content models from JSON/YAML data.

72148.3k5](/packages/pennebaker-craft-architect)[supercool/buttonbox

A collection of utility field types.

8953.2k1](/packages/supercool-buttonbox)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
