The issue
Recently, after upgrading my Flarum forum from 1.4 to 1.6.2 I noticed that Flarum drastically slowed down. Especially posting when there are 10+ users active on forum (5-10 seconds to submit the post).
I have @askvortsov AutoModerator Extension enabled with 15+ rules which gives user badges from @JasperVriends User Badges extension upon rewarding users with a specific sum of likes (example, after rewarding the user with 10 likes, he gains a +1 badge, then after another 10 likes +2 badge, etc...). Only an Admin have permission to give likes, and he does that a few times per day at max.
- Flarum works great when Likes extension is disabled and Auto Moderator enabled
- Flarum works great when Likes extension is enabled, but Auto Moderator is disabled
- Flarum worked great with both extensions enabled on 1.4ž
Does anyone have a theory about what happened in the transition to 1.6.2?
Flarum information
Flarum core 1.6.2
PHP version: 7.4.30
MySQL version: 5.5.5-10.4.20-MariaDB-1:10.4.20+maria~buster-log
Loaded extensions: Core, date, libxml, openssl, pcre, zlib, filter, hash, pcntl, Reflection, SPL, session, standard, sodium, mysqlnd, PDO, xml, apcu, bcmath, bz2, calendar, ctype, curl, dba, dom, enchant, mbstring, FFI, fileinfo, ftp, gd, gettext, gmp, iconv, igbinary, imagick, imap, intl, json, exif, mongodb, msgpack, mysqli, odbc, pdo_dblib, PDO_Firebird, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, pgsql, apc, posix, readline, redis, shmop, SimpleXML, soap, sockets, sqlite3, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, xmlreader, xmlrpc, xmlwriter, xsl, zip, Phar, memcached, ionCube Loader, Zend OPcache
+------------------------------+---------+--------+
| Flarum Extensions | | |
+------------------------------+---------+--------+
| ID | Version | Commit |
+------------------------------+---------+--------+
| askvortsov-auto-moderator | v0.1.2 | |
| flarum-tags | v1.6.1 | |
| flarum-lock | v1.6.1 | |
| flarum-markdown | v1.6.1 | |
| v17development-user-badges | v1.1.0 | |
| kilowhat-wordpress | 1.7.5 | |
| fof-linguist | 1.0.4 | |
| fof-byobu | 1.1.7 | |
| flarum-likes | v1.6.1 | |
| flarum-lang-english | v1.6.0 | |
| flarum-emoji | v1.6.1 | |
| davwheat-inline-group-badges | 1.0.0 | |
| askvortsov-rich-text | v2.1.7 | |
+------------------------------+---------+--------+
Base URL: /
Installation path: /
Queue driver: sync
Session driver: file
Mail driver: smtp
Debug mode: off