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).

    7 days later

    Keep pushing 🙊
    TTFB: 316ms

    Anyone reached yet 100%?

      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.

      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 🙂

        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.

        8 days later

        Hi, I wanted to ask, often when I clear the cache after making a change I get an HTTP ERROR 500 on the page, nothing dramatic when I reload the page it shows up without any problems, but I was wondering what is causing this, is there a memory/similar setting I need to increase in the server to avoid this?

          Darkle Without the details of the error, it's hard to tell. Maybe you can find something in the logs?

            rafaucau I've checked it, unfortunately it doesn't cause any log from Flarum side, so it must be part of the OLS/PHP server, I'll keep investigating... it sounds like some sort of memory exhaustion

            a month later

            I met a problem while using you extension. Something went wrong when I tried to log in my account. I refresh the home page, then it was displayed as it has not been logged in. But the dashboard showed me the fact that I had logged in successfully.
            For more detail, you can visit my website:https://post.cplus8.com.

              xb6262
              Try it with this code in your .htacces file:

              <IfModule LiteSpeed>
                  CacheLookup on
                  RewriteEngine On
                  RewriteCond %{REQUEST_METHOD} ^HEAD|GET$
                  RewriteRule .* - [E="Cache-Vary:flarum_remember,flarum_lscache_vary,locale"]
                  RewriteCond %{ORG_REQ_URI} !/admin
                  RewriteRule .* - [E=Cache-Control:no-cache]
              </IfModule>

              I updated the documentation some time ago because the extension itself adds the Cache-Vary header, but maybe it doesn't work for you or you are using an older version.

                22 days later

                rafaucau After adding those lines of the .htaccess rule, the homepage ls cache not caching.

                x-litespeed-cache: miss
                I have tried incognito mode and tested from other devices, it still returns miss where the other page return hit status. Is it a bug or above rules prevent the homepage from caching?

                Edit:
                I have removed the above htaccess rule and the homepage is caching now. I had similar problem as @xb6262, but I had to remove that.

                  halimjr I encountered this problem on my forum in the past. After contacting the hosting support, they updated the LiteSpeed server to the latest version, which fixed the problem.

                    rafaucau I will contact my hosting provider. Thanks for the information and extension. 🙂