Added removed old remmeber me tokens after 48 hours to the cron.php cleanup section

This commit is contained in:
johnnyq 2024-02-29 14:46:02 -05:00
parent 9955ff56f5
commit 6641c5c338
1 changed files with 3 additions and 0 deletions

View File

@ -114,6 +114,9 @@ mysqli_query($mysqli, "DELETE FROM notifications WHERE notification_dismissed_at
// Clean-up mail queue
mysqli_query($mysqli, "DELETE FROM email_queue WHERE email_queued_at < CURDATE() - INTERVAL 90 DAY");
// Clean-up old remember me tokens (2 or more days old)
mysqli_query($mysqli, "DELETE FROM remember_tokens WHERE remember_token_created_at < CURDATE() - INTERVAL 2 DAY");
//Logging
//mysqli_query($mysqli, "INSERT INTO logs SET log_type = 'Cron', log_action = 'Task', log_description = 'Cron cleaned up old data'");