Rewrote forum backend.

This commit is contained in:
flash 2023-08-28 01:17:34 +00:00
parent f033e27ab5
commit 265399d343
48 changed files with 3798 additions and 3032 deletions
tools

View file

@ -74,8 +74,9 @@ msz_sched_task_sql('Remove stale forum tracking entries.', false,
msz_sched_task_sql('Synchronise forum_id.', true,
'UPDATE msz_forum_posts AS p INNER JOIN msz_forum_topics AS t ON t.topic_id = p.topic_id SET p.forum_id = t.forum_id');
msz_sched_task_func('Recount forum topics and posts.', true,
function() { forum_count_synchronise(); });
msz_sched_task_func('Recount forum topics and posts.', true, function() use ($msz) {
$msz->getForum()->syncForumCounters();
});
msz_sched_task_sql('Clean up expired 2fa tokens.', false,
'DELETE FROM msz_auth_tfa WHERE tfa_created < NOW() - INTERVAL 15 MINUTE');