Skip to content

Commit 3f2111c

Browse files
authored
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.
1 parent 58d202f commit 3f2111c

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/DependencyInjection/ContainerFactory.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,9 +218,6 @@ public function clearOldContainers(string $tempDirectory): void
218218
if ($path === false) {
219219
continue;
220220
}
221-
if ($containerFile->getATime() > $twoDaysAgo) {
222-
continue;
223-
}
224221
if ($containerFile->getCTime() > $twoDaysAgo) {
225222
continue;
226223
}

0 commit comments

Comments
 (0)