I'm pleased to announce ReFlar's next major upcoming extension: ReCache
About
Flarum is already fast, but we can make it faster.
ReCache will cache all successful GET requests and relay them when requested again, massively decreasing future load times (more on that later)
Out of the box it will support caching to a file, Redis, and Memcached, but can be extended to use any custom driver someone is willing to make!
ReCache will also respond to any cache clearing that Flarum does on it's own (via the command or enabling and extension) and will purge it's cache according. It also comes with a command of it's own to clear only it's cache.
Protecting Private Data
The caches are saved based on the requester's permission group to prevent any data (such as discussions in a private tag) from getting exposed to normal users. Guests, members, mods, and admins all have their own separate cache.
Extensibility
Your forum, your rules
When you first install ReCache it will cache every successful GET request, but it doesn't have to be that way, with a little bit of coding knowledge you will be able to set up your own cache profile!
Results
So how does it actually perform?
Early testing has shown some incredible results. While using the slowest driver (filesystem) we were able to get the homepage loading time for guests down from 1.4s (1400ms) to just over 100ms that's 93% faster! More testing is required, but we assume it can only get faster from there!
Release Date and Other Info
We are targeting a release shortly after Flarum's 9th beta which is scheduled for release at the end of the month, if it isn't done within then, we will have no problem sending it out for beta 8 and updating it for beta 9.
Due to the immense time and effort this extension is taking to put together, it will be a premium extension.
If you have any questions or want to just chat us up, join our Discord! We always love talking to excited Flarumites like yourself!
Well that's all we've got for you folks, I hope you're as excited as we are!