LiteSpeed Cache
Speed up your forum on LiteSpeed Web Server.
LiteSpeed Cache for Flarum
A Flarum extension. Integrates LSCache with your forum.
Requires a LiteSpeed Web Server or OpenLiteSpeed.
Installation
Install with composer:
composer require acpl/flarum-lscache:"*"
You need to include this code in your .htaccess
file:
<IfModule LiteSpeed>
CacheLookup on
</IfModule>
You can also add your own rules. For more information see here: https://docs.litespeedtech.com/lscache/noplugin/settings/#rewrite-rules
Updating
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.
FAQ
How do I avoid generating different cache versions for specific query strings? E.g. fbclid.
You can use CacheKeyModify -qs:[key]
.
Example:
<IfModule LiteSpeed>
CacheLookup on
CacheKeyModify -qs:fbclid
CacheKeyModify -qs:gclid
CacheKeyModify -qs:utm*
CacheKeyModify -qs:_ga
</IfModule>
Links
Features
© 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.