Skip to content

Commit da57476

Browse files
committed
cleanup filecache_extended items by default
Signed-off-by: Robin Appelman <[email protected]>
1 parent afe2f1d commit da57476

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/files/lib/Command/DeleteOrphanedFiles.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ protected function configure(): void {
4747
$this
4848
->setName('files:cleanup')
4949
->setDescription('cleanup filecache')
50-
->addOption('filecache-extended', null, InputOption::VALUE_NONE, 'remove orphaned entries from filecache_extended');
50+
->addOption('skip-filecache-extended', null, InputOption::VALUE_NONE, 'don\'t remove orphaned entries from filecache_extended');
5151
}
5252

5353
public function execute(InputInterface $input, OutputInterface $output): int {
@@ -78,7 +78,7 @@ public function execute(InputInterface $input, OutputInterface $output): int {
7878

7979
$output->writeln("$deletedEntries orphaned file cache entries deleted");
8080

81-
if ($input->getOption('filecache-extended')) {
81+
if (!$input->getOption('skip-filecache-extended')) {
8282
$deletedFileCacheExtended = $this->cleanupOrphanedFileCacheExtended();
8383
$output->writeln("$deletedFileCacheExtended orphaned file cache extended entries deleted");
8484
}

0 commit comments

Comments
 (0)