diff options
author | Robin Appelman <robin@icewind.nl> | 2025-04-07 18:12:42 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2025-04-07 19:35:41 +0200 |
commit | c89e3c2f74d6f0bf253dddc18a4a4d305821cbe7 (patch) | |
tree | 77ae38024de782c713f8e0f9ff2a45f64f75b9d5 /lib/private/Repair | |
parent | 084487bdd5ac052fc831509780ce2ffe5517eb41 (diff) | |
download | nextcloud-server-files-cache-node.tar.gz nextcloud-server-files-cache-node.zip |
feat: move file cache to a background jobfiles-cache-node
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Repair')
-rw-r--r-- | lib/private/Repair/NC32/AddFileCacheGcBackgroundJob.php | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/lib/private/Repair/NC32/AddFileCacheGcBackgroundJob.php b/lib/private/Repair/NC32/AddFileCacheGcBackgroundJob.php new file mode 100644 index 00000000000..b6b0af1bf32 --- /dev/null +++ b/lib/private/Repair/NC32/AddFileCacheGcBackgroundJob.php @@ -0,0 +1,29 @@ +<?php + +declare(strict_types=1); + +/** + * SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors + * SPDX-License-Identifier: AGPL-3.0-or-later + */ +namespace OC\Repair\NC32; + +use OC\Core\BackgroundJobs\FileCacheGcJob; +use OCP\BackgroundJob\IJobList; +use OCP\Migration\IOutput; +use OCP\Migration\IRepairStep; + +class AddFileCacheGcBackgroundJob implements IRepairStep { + public function __construct( + private readonly IJobList $jobList, + ) { + } + + public function getName(): string { + return 'Add background job to cleanup file cache'; + } + + public function run(IOutput $output) { + $this->jobList->add(FileCacheGcJob::class); + } +} |