LiteSpeed Cache for Flarum
A Flarum extension. Integrates LSCache with your forum.
Requires a LiteSpeed Web Server or OpenLiteSpeed.
Install with composer:
composer require acpl/flarum-lscache
Upon initial activation, the extension will add its configurations to the
It's recommended to back up your
.htaccess file before installing the extension.
composer update acpl/flarum-lscache
php flarum migrate
php flarum cache:clear
This extension smartly manages the cache by purging it only where needed. For instance, when a new post is added in a discussion, the cache for that specific discussion, its tags, and the homepage are purged.
When you clear the Flarum cache, the LSCache is also cleared automatically unless you disable this feature in the settings.
You can clear the LSCache without clearing the Flarum cache via the admin panel. This 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. For example,
php flarum lscache:clear --path=/tags --path=/d/1-test. You can use this if you only want to purge specific paths instead of the entire cache.