clarkwinkelmann thanks for the tip. But in order to run the command, the extension needs to be enabled (otherwise, the command is not registered, AFAIK). So, we'd need a way to create an extender that runs the command on cache clear, but only when the extension is enabled. Since I am not a PHP dev and don't know much about Flarum's extenders, I will need someone to help me with this. I can't just append it to the commands that FreeFlarum runs when it syncs forums either, because it would need to check whether that forum has enabled the extension, which results in the same problem.
But is it even worth the hassle to setup such system? Given that the issue can be fixed by visiting the forum, I guess that it is not very urgent. If this is confirmed to be a Flarum issue, I think that it is a better idea to wait for a fix from Flarum's side instead. Unless the extender is very simple to setup at FreeFlarum. I just don't want to implement somewhat complicated PHP code, if I can't understand it/maintain it. But if it's going to be just a few lines of code, then I'm happy to include it to fix this problem for the time being, until a proper patch is found.
Edit: Actually, I could just make a request to the forum after cache is cleared, to warm it up. I don't know how to do that from PHP, so I guess it's time to Google then...
Edit 2: Okay, I came up with some code. During the Flarum\Foundation\Event\ClearingCache
, it sleeps for 5 seconds and then pings the forum in the background. This is probably not the most efficient way to do it, and I don't know whether it is worth the risk of this breaking something else. I will keep the extender for now and see how things behave. Please, report any issues that you experience to us, so that I am aware of them and can fix them.
The extender can be viewed here, if anyone would like to have a look at it and suggest possible improvements for the spaghetti code.
As a follow up to my recent announcement, Outlook has applied a mitigation to our IP and unlisted us from their blacklist. This means that Outlook/Hotmail users should now receive E-mails again (which is evident by our mail queue being empty, without any bounced-back E-mails). If you still face any problems regarding mail delivery, please contact us and I will have a look at it.
And, a small upgrade for FreeFlarum documentation, to give it some love too - it now lies at https://docs.freeflarum.com (visitors using the old URL will be redirected, so this hopefully won't break any existing links). I have successfully connected the docs repo with GitHub actions to automatically build and deploy the documentation on every push. Before, we were using internal scripts to build it locally and serve it through Nginx - now, everything happens at GitHub, which is simpler to maintain and usually more reliable too. Furthermore, the documentation was adjusted a bit to reflect up-to-date information about FreeFlarum (until it gets a proper overhaul next month).