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 */