Speed up your forum on LiteSpeed Web Server.
Requires a LiteSpeed Web Server or OpenLiteSpeed.
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.
We welcome any contributions to the development of LiteSpeed Cache for Flarum! If you'd like to contribute, feel free to fork this repository and submit a pull request. You can also open an issue if you want to suggest improvements or report a problem.
This project is open source and maintained by a single developer. If you find it useful and would like to ensure its continued development, please consider supporting it through GitHub Sponsors. Your support is greatly appreciated!