LiteSpeed Cache

Speed up your forum on LiteSpeed Web Server.

Compatible with Flarum v1.3.0

Latest release 0.4.1


released on Nov 16, 2021


LiteSpeed Cache for Flarum

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


© 2022 Hyn by DaniĆ«l "Luceos" Klabbers. All rights reserved. · Extensions and extension information is provided by the respective (copyright holding) authors. · Extiverse is not affiliated to the Flarum project or Flarum foundation. · Images on Extiverse pages are from Unsplash.