aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/lib
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2024-02-09 14:49:56 +0100
committerDaniel <mail@danielkesselberg.de>2024-04-15 20:30:57 +0200
commit1d34f0a824e15ad5ed685d05dc46910362e99404 (patch)
tree26089a1e4c6d367e3886f83060033d5f111eb31e /apps/files/lib
parent2f6cc924914e52841da58866c93b5ab0546ce72f (diff)
downloadnextcloud-server-1d34f0a824e15ad5ed685d05dc46910362e99404.tar.gz
nextcloud-server-1d34f0a824e15ad5ed685d05dc46910362e99404.zip
feat: cleanup filecache_extended items by default
Signed-off-by: Robin Appelman <robin@icewind.nl> Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'apps/files/lib')
-rw-r--r--apps/files/lib/Command/DeleteOrphanedFiles.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/lib/Command/DeleteOrphanedFiles.php b/apps/files/lib/Command/DeleteOrphanedFiles.php
index 1af8ad64a37..1b5727ae546 100644
--- a/apps/files/lib/Command/DeleteOrphanedFiles.php
+++ b/apps/files/lib/Command/DeleteOrphanedFiles.php
@@ -47,7 +47,7 @@ class DeleteOrphanedFiles extends Command {
$this
->setName('files:cleanup')
->setDescription('cleanup filecache')
- ->addOption('filecache-extended', null, InputOption::VALUE_NONE, 'remove orphaned entries from filecache_extended');
+ ->addOption('skip-filecache-extended', null, InputOption::VALUE_NONE, 'don\'t remove orphaned entries from filecache_extended');
}
public function execute(InputInterface $input, OutputInterface $output): int {
@@ -78,7 +78,7 @@ class DeleteOrphanedFiles extends Command {
$output->writeln("$deletedEntries orphaned file cache entries deleted");
- if ($input->getOption('filecache-extended')) {
+ if (!$input->getOption('skip-filecache-extended')) {
$deletedFileCacheExtended = $this->cleanupOrphanedFileCacheExtended();
$output->writeln("$deletedFileCacheExtended orphaned file cache extended entries deleted");
}