chore: retain xml dumps for three days to save on webspace

This commit is contained in:
Björn Fromme
2025-12-14 17:10:09 +01:00
parent 42f17db542
commit 1622f2be6a
+2 -2
View File
@@ -14,7 +14,7 @@ use Symfony\Component\Console\Style\SymfonyStyle;
#[AsCommand(
name: 'app:cleanup:xml-dumps',
description: 'Removes XML dumps of BPN requests/responses older than a week'
description: 'Removes XML dumps of BPN requests/responses older than 3 days'
)]
class CleanupXMLDumpsCommand extends Command
{
@@ -30,7 +30,7 @@ class CleanupXMLDumpsCommand extends Command
$io = new SymfonyStyle($input, $output);
// we look for files older than 1 week
$maxDate = (new \DateTimeImmutable())->modify('-1 week')->getTimestamp();
$maxDate = (new \DateTimeImmutable())->modify('-3 days')->getTimestamp();
try {
$files = $this