From 6641c5c3386074c09b8ca6a01a7a1133cd06a2ea Mon Sep 17 00:00:00 2001 From: johnnyq Date: Thu, 29 Feb 2024 14:46:02 -0500 Subject: [PATCH] Added removed old remmeber me tokens after 48 hours to the cron.php cleanup section --- cron.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cron.php b/cron.php index d9be95bb..191a7360 100644 --- a/cron.php +++ b/cron.php @@ -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'");