Added missing housekeeping cronjob.
This commit is contained in:
parent
534e947522
commit
ab1bcaebc0
2 changed files with 7 additions and 1 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
20250201
|
||||
20250202
|
||||
|
|
|
@ -81,6 +81,12 @@ msz_sched_task_func('Recount forum topics and posts.', true, function() use ($ms
|
|||
msz_sched_task_sql('Clean up expired 2fa tokens.', false,
|
||||
'DELETE FROM msz_auth_tfa WHERE tfa_created < NOW() - INTERVAL 15 MINUTE');
|
||||
|
||||
msz_sched_task_func('Clean up OAuth2 related data.', false, function() use ($msz) {
|
||||
$msz->oauth2Ctx->pruneExpired(function(string $format, ...$args) {
|
||||
echo sprintf($format, ...$args) . PHP_EOL;
|
||||
});
|
||||
});
|
||||
|
||||
// very heavy stuff that should
|
||||
|
||||
msz_sched_task_func('Resync statistics counters.', true, function() use ($msz) {
|
||||
|
|
Loading…
Reference in a new issue