FBI
I've just read from Github
$events->listen(DiscussionWasStarted::class, function (DiscussionWasStarted $event) {
$this->UpdateSitemap();
Sitemap was update it after discussion was created ?
Is it work for sub-directory of flarum installation?
$sitemap = new Sitemap(DIR . '/../../../../../sitemap.xml');
Because I tried, several times. Error occur during create discussion, and still on Discussion Windows.
But, actually discussion created succesfully on background (refresh the page).
And with FTP I dont see any sitemap file was created.