From 6c4ce8cb8d2cdb3038efb048a5256499f54110d4 Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Sun, 1 Sep 2019 23:16:13 +0300 Subject: [PATCH] Increase cleanup timout for minecraft access tokens --- console/controllers/CleanupController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/console/controllers/CleanupController.php b/console/controllers/CleanupController.php index 85439a3..a64e1d2 100644 --- a/console/controllers/CleanupController.php +++ b/console/controllers/CleanupController.php @@ -1,6 +1,7 @@ andWhere(['<', 'updated_at', time() - 1209600]); // 2 weeks + ->andWhere(['<', 'updated_at', Carbon::now()->subMonths(3)->getTimestamp()]); foreach ($expiredMinecraftSessionsQuery->each(100, Yii::$app->unbufferedDb) as $minecraftSession) { /** @var MinecraftAccessKey $minecraftSession */