Speed up your forum on LiteSpeed Web Server.

Fund package maintenance!

Installs: 519

Dependents: 0

Suggesters: 0

Security: 0

Stars: 5

Watchers: 2

Forks: 0

Open Issues: 1


0.4.1 2022-01-20 14:34 UTC

This package is auto-updated.

Last update: 2023-01-02 07:05:51 UTC


Latest Stable Version Total Downloads

A Flarum extension. Integrates LSCache with your forum.

Requires a LiteSpeed Web Server or OpenLiteSpeed.


Install with composer:

composer require acpl/flarum-lscache:"*"

You need to include this code in your .htaccess file:

<IfModule LiteSpeed>
    CacheLookup on

You can also add your own rules. For more information see here:


composer update acpl/flarum-lscache:"*"
php flarum migrate
php flarum cache:clear

When you clear the Flarum cache, the LSCache is cleared automatically. Unless you disable it in the settings.

You can clear LSCache without clearing the Flarum cache in the admin panel. The option is available under the standard Flarum cache clearing option. There is also the php flarum lscache:clear command. The command supports the --path argument. E.g. php flarum lscache:clear --path=/tags --path=/d/1-test. You can use it if you want to purge only specific paths instead of the entire cache.


How do I avoid generating different cache versions for specific query strings? E.g. fbclid.

You can use CacheKeyModify -qs:[key].


<IfModule LiteSpeed>
    CacheLookup on
    CacheKeyModify -qs:fbclid
    CacheKeyModify -qs:gclid
    CacheKeyModify -qs:utm*
    CacheKeyModify -qs:_ga