From 3f2111c02b2150cc86b6064d1930e0e0cffc1b96 Mon Sep 17 00:00:00 2001 From: Jan Nedbal Date: Mon, 19 Aug 2024 20:55:03 +0200 Subject: [PATCH] ContainerFactory::clearOldContainers check only ctime, not atime When cache is pulled from some storage (e.g. S3), it gets recent atimes and this does not work. That causes unwanted cache swelling. --- src/DependencyInjection/ContainerFactory.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/DependencyInjection/ContainerFactory.php b/src/DependencyInjection/ContainerFactory.php index cb3bf3006a..4b11906932 100644 --- a/src/DependencyInjection/ContainerFactory.php +++ b/src/DependencyInjection/ContainerFactory.php @@ -218,9 +218,6 @@ public function clearOldContainers(string $tempDirectory): void if ($path === false) { continue; } - if ($containerFile->getATime() > $twoDaysAgo) { - continue; - } if ($containerFile->getCTime() > $twoDaysAgo) { continue; }