The issue
After updating using composer and installing the 2fa extension (https://flarum.org/extension/ianm/twofactor), I restarted Apache and PHP instances, but now it gives 404 errors on 2 URL's (API):
https://domain/api/statistics?period=lifetime:
{"errors":[{"status":"404","code":"not_found"}]}
https://domain/api/tags?include
{"errors":[{"status":"404","code":"not_found"}]}
As info, it worked before the composer adding the extension, so something got broken.
Everything runs in Docker Swarm environment, with Redis as session handler in PHP, scaled.
This shouldn't be a problem, and seeing this app runs on Symfony (which I code in as well), shouldn't be an issue at all.
Cache has been cleared in the admin forum itself (Tools), but also with php flarum cache:clear
Flarum information
~ $ php flarum info
Flarum core: 1.8.11
PHP version: 8.3.27
MySQL version: 11.8.3-MariaDB-0+deb13u1 from Debian-log
Loaded extensions: Core, date, libxml, openssl, pcre, sqlite3, zlib, ctype, curl, dom, fileinfo, filter, hash, iconv, json, mbstring, SPL, session, PDO, pdo_sqlite, bz2, posix, random, readline, Reflection, standard, SimpleXML, tokenizer, xml, xmlreader, xmlwriter, mysqlnd, Phar, exif, gd, gettext, gmp, intl, mysqli, pcntl, pdo_mysql, pspell, redis, shmop, soap, sockets, sodium, tidy, xsl, zip, Zend OPcache
+-------------------+---------+--------+
| Flarum Extensions | | |
+-------------------+---------+--------+
| ID | Version | Commit |
+-------------------+---------+--------+
| ianm-twofactor | 1.2.0 | |
+-------------------+---------+--------+
Base URL: https://www.ddrnl.com
Installation path: /site
Queue driver: sync
Session driver: file
Scheduler status: Never run
Mail driver: smtp
Debug mode: off