• Resources
  • Free Flarum hosting on an expert platform by FreeFlarum.com

90% performance improvement in cache rebuilding

Flarum - while normally blazing fast - is slow with rebuilding the cache. Most time is spent with the JS minification which is either done using Google's service (5-30s) or with Matthias Mullie's PHP Minifier (5-120s).

A benchmark to rebuild all 230 FreeFlarum forum caches sequentially took almost an hour (15.4s per forum).

But alas, FreeFlarum has now replaced the PHP minifier with a Golang minifier. This gives slightly bigger JS (0.5%) at a reduction of 90% of execution time (now, just 1.5s per forum).

Before:
$ time reload_caches
  real	58m57.584s

And after:
$ time reload_caches
  real	5m45.291s

Free Flarum promises to stay free in exchange for a small amount of advertisements. Now, it seems fair to only show ads once people can actually upgrade to an ad-free plan. This feature is planned for the second half of 2018. So, no ads for now! :-D

However, FreeFlarum could use more link-rep. So I introduced a tiny, non-sticky "powered by" footer.

If you do not want this, you are allowed to hide the footer if you create a link to FreeFlarum elsewhere. So:

  1. Create a link to https://www.freeflarum.com
  2. Send the URL to info@freeflarum.com
  3. Add #ff-footer { display:none; } to your custom CSS

Thanks!

    Sanguine Hmm... You should think about turning it into an actual footer with a wrapper and all, plain text can kill a forum or forum hosting service. ?

      Felli What do you mean with a wrapper? Examples welcome ?

        Sanguine An easy to use box-like effect you'd want to use something like the following, but I'm sure that other's could provide a better example of how to do this with Flarum.

        footer{
            width: 100%;
            padding: 25px;
            border: 25px solid navy;
            margin: 25px;
            border-radius: 15px;
        
            font-size: 2em;
            text-align: center;
            font-weight: bold;
        }

        You sure about that?

        I was planning to keep it small and unobtrusive ?

        And still not sure what you mean by a "wrapper" ? There's already a div?

          Freeflarum is great, so i don't see any problem with this footer and ads that will be displayed in future. Maybe some background could be added if u want for footer to be seen even on custom backgrounds with dark colors etc.

          Felli I think I have a solution for him ? A small widget under the tags would be the best approach. A simple message at that.

            Ralkage I didn't even think of that, would be a better solution to the problem. ?

            Zeokat removed redirection.

            @Sanguine I suggest in robots.txt close type pages
            http://mysite.com/?sort=oldest
            http://mysite.com/?sort=top
            _http://mysite.com/?sort=newest

            It's 100% duplicate and bad for Google

              How Delete a account? example vamosvirar at freeflarum

                luceos Searching via mobile is rather time-consuming at the moment. ?

                @Sanguine Is it possible to remove Google fonts? as it's blocked here, this makes it very slow.
                Or upload the fonts onto the FreeFlarum server.