LiteSpeed Cache for Flarum
- Edited
ihhddis You can read the previous data by translating it into English below.
rafaucau Wow that's fantastic, do you think there would be a problem with OpenLiteSpeed? for some reason there are some LSCache plugins like PrestaShop's that don't work with the Open version only with Enterprise (https://www.litespeedtech.com/products/litespeed-web-server/editions).
If it works, it would be great if someone could make a guide on how to install Flarum with OpenLiteSpeed, I've never managed to get it working but this gives me a lot of motivation.
- Edited
I tested without logging in. same value as your site.
alt-svc: h3=":443"; ma=86400, h3-29=":443"; ma=86400, h3-28=":443"; ma=86400, h3-27=":443"; ma=86400
cache-control: public, max-age=0
cf-cache-status: DYNAMIC
cf-ray: 6af676207e4e4c5c-AMS
content-encoding: br
content-type: text/html; charset=utf-8
date: Wed, 17 Nov 2021 05:11:58 GMT
expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
expires: Wed, 17 Nov 2021 05:11:45 GMT
nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
referrer-policy: same-origin
report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=rDTd4iaPyYYYQnJ1STz2mYJq9s4hvRVpKjweqtKnvFlcoxs%2BD44kY%2BxdhvfHOEY8tKvoP3VdM0YXemyQLXo9t3jwUh%2Btcr%2F5P5NaR5x6cMkcNAB6F%2BQT4FDD3lO8"}],"group":"cf-nel","max_age":604800}
server: cloudflare
vary: Accept-Encoding
x-content-type-options: nosniff
x-csrf-token: KisFOl6y7cZdfYFU3KrGWoWy5TiXLKgm0Irjah8v
x-litespeed-cache: hit
x-powered-by: Flarum
x-turbo-charged-by: LiteSpeed
Working nicely here, solid page speed improvements, not magical or madly dramatic but definitely solid
Problem 1
- acpl/flarum-lscache[0.0.1, ..., 0.0.3] require guzzlehttp/guzzle 7.4 -> found guzzlehttp/guzzle[7.4.0] but the package is fixed to 7.3.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
- Root composer.json requires acpl/flarum-lscache * -> satisfiable by acpl/flarum-lscache[0.0.1, 0.0.3].Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
- Edited
0.0.4
- Fixed an issue with caching the logout page
Please update as soon as possible as this is a serious issue. After update you have to clear LSCache in admin panel or using command