Sitemap version 2.0
- PHP 8.0 requirement
- Complete rewrite of the deploy system.
- Simplification of the available modes: now only runtime and cached multi-file are available.
- Runtime now depends on the same logic as multi-file, so it is no longer limited to 50.000 items. But it's still not advisable to use it with so many items.
- Added admin setting to exclude all user profiles from sitemap.
- Added
ForceCached
extender.
- Added optional "risky" performance improvements. This option is likely not for you. Consult the README for details.
To update from version 1.x
The update requires PHP 8.0 or greater. If you are still on PHP 7.3 or 7.4, you can continue using version 1.x. There will be no new updates for the 1.x line.
If composer update
doesn't pick up the new version, you can force the update to version 2.0 with this command:
composer require fof/sitemap:"*"
Clear the cache:
php flarum cache:clear
If you were running runtime mode, that's everything that was needed. The extension should work right away.
If you were running cache or disk mode, the mode will automatically switch to the new multi-file mode.
Then run the following command to generate a first sitemap immediately:
php flarum fof:sitemap:build
If you had already configured the scheduler, the new build command will automatically run at the previously selected time.
If you get a filesystem write error, verify Flarum can write to the public
folder. A sitemaps
folder will be created and all subsequent write operations will be in that folder.
This update was sponsored by Blomstra.