LiteSpeed Cache

Speed up your forum on LiteSpeed Web server.

Compatible with Flarum v1.1.1

Latest release 0.1.5


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.


Install with composer:

composer require acpl/flarum-lscache:"*"

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

<IfModule LiteSpeed>
    CacheLookup on
    RewriteEngine On
    RewriteCond %{REQUEST_METHOD} ^HEAD|GET$
    # Detection of logged-in user.
    RewriteRule .* - [E="Cache-Vary:flarum_remember,flarum_lscache_vary,locale"]
    # If you have a non-default path to the admin panel, change "admin" to match.
    RewriteCond %{ORG_REQ_URI} !/admin
    # Enable private cache for admin panel. If it causes problems replace "private" with "no-cache".
    RewriteRule .* - [E=Cache-Control:private]

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


composer update acpl/flarum-lscache:"*"

php flarum migrate

php flarum cache:clear

You can clear the LSCache in the admin panel. The option is available under the standard Flarum cache clearing option. There is also the flarum lscache:clear --userId [adminId] command, but you must know the admin id to use it. Eg. flarum lscache:clear --userId 9. The admin id is needed to authorize the request. This command will probably be replaced by a better solution soon.


© 2021 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.