LiteSpeed Cache for Flarum
After installing, waterfall results
And in cleaned browsers search score
I still dont know yet if the extension is really working? Still the same faq ring in my head
everyone loves speed!
Inside the admin panel, any examples we could use for Purge URLs or Tags when a discussion or post is updated
It would save time if the explanation will be in flarum language, for example starting with /d/
Previous on 8th Sep, i had the same idea, its fantastic to see the progress https://discuss.flarum.org/d/28884-lets-build-this-rewrite-rule-code-together
Thank you!
Braden I still dont know yet if the extension is really working?
The easiest way to detect if the extension is working is to check the x-litespeed-cache
header, if its result is hit
you can be sure it's working.
To check it open your browser console, go to network, click on the first request (your domain) and check the headers.
If you refresh the page again, it should be a hit. If it's a miss the whole time, then you probably have a misconfigured server or .htaccess
Braden after enabling cloudflare apo (wordpress) in my case it went to 100ms from 2.2sec. As I can see in your screenshots it's 800ms. I have tried cloudflare edge cache it may not work for flarum (login issues)
Who doesn't love speed? Is litespeed some kind of readies package that we need to add to our server?
- Edited
rafaucau If it's a miss the whole time, then you probably have a misconfigured server or .htaccess
I went and changed cloudflare page rules, they were caching everything, turned em off for now and it showed hit
Hari Is litespeed some kind of readies package that we need to add to our server?
Not for shareholics who have already VPs
So today i was showing my younger sister my flarum, we were writing a topic that took hours since we were also occupied with the Christmas festival.
When we tried to post the topic, it said oops (the normal error) and i immediately knew because we had left the page for quite a long time, it losted the old cache.
I was embarrassed
rafaucau through my research i confirm it was my opera browser browser settings. This extension could be ext now! You done a good job here!
I am still surprised with this Lite speed. How does it bring something from 4's to Milliseconds? We know obvious that theres little heavy data there but its passed/transferred very lightly, magic!
I also would like to point
Guys whenever you clear cache, or purge, make sure you also check the Ls cache hit sign. Clearing cache everytime especially when installing and uninstalling extension for me affected the hit sign.
Braden Guys whenever you clear cache, or purge, make sure you also check the Ls cache hit sign. Clearing cache everytime especially when installing and uninstalling extension for me affected the hit sign.
Whenever the cache is cleared, the first visit afterwards will be to an uncached version of the page (because there isn't one, it isn't built until there is a visit).
- Edited
The LiteSpeed Cache plugin for WordPress has a feature like Crawler. Maybe this could be replicated in this extension in the future
https://blog.litespeedtech.com/2017/06/14/wpw-crawl-your-site-make-it-fly/
https://github.com/litespeedtech/lscache_wp/blob/master/src/crawler.cls.php
rafaucau The LiteSpeed Cache plugin for WordPress has a feature like Crawler. Maybe this could be replicated in this extension in the future
It's a nice idea, I guess that how useful it would be depends on how busy the forum is and what the TTL is set as. On a moderately busy forum you might never get a cold cache, but with very little traffic the crawler makes more sense.
- Edited
Braden Anyone reached yet 100%?
This extension only helps with TTFB. It will not magically make the Flarum frontend (JS) lighter. https://discuss.flarum.org/d/28025-flarum-needs-a-code-splitting
By the way GTmetix by default uses a server in Canada. If you are far away from that country the ping will be high and thus big TTFB.
It would be best to check in the same country where you have a server. Then you will find out what TTFB the average user of your forum has (if it is not international).
rafaucau It would be best to check in the same country where you have a server. Then you will find out what TTFB the average user of your forum has (if it is not international).
I really like https://fastorslow.com for this, it gives you speeds from 18 different locations at once. All of our sites are generally let down by Australia
- Edited
0.4.0
You can now clear cache of specific paths using the --path
option.
E.g. php flarum lscache:clear --path=/tags --path=/d/1-test
When no paths are specified, the entire cache will be cleared.
- Edited
0.4.1
Flarum 1.2 hotfix
- Use
toolsItems
insteadchildren.push
for clear LSCache button android-com-pl/flarum-lscache4 by @datlechin
- Update to Webpack v5 - reduced bundle size (8.46 KB -> 7.92 KB)