From 0b8f0d0a0bc282a02c7e88271a848cb1f8063729 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 15 Feb 2024 16:51:52 +0100 Subject: [PATCH] fix: only cleanup orphaned shared daly Signed-off-by: Robin Appelman --- apps/files_sharing/lib/DeleteOrphanedSharesJob.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/apps/files_sharing/lib/DeleteOrphanedSharesJob.php b/apps/files_sharing/lib/DeleteOrphanedSharesJob.php index 2d166da2010c0..6883bfd476225 100644 --- a/apps/files_sharing/lib/DeleteOrphanedSharesJob.php +++ b/apps/files_sharing/lib/DeleteOrphanedSharesJob.php @@ -34,18 +34,14 @@ * Delete all share entries that have no matching entries in the file cache table. */ class DeleteOrphanedSharesJob extends TimedJob { - /** - * Default interval in minutes - **/ - protected int $defaultIntervalMin = 15; - /** * sets the correct interval for this timed job */ public function __construct(ITimeFactory $time) { parent::__construct($time); - $this->interval = $this->defaultIntervalMin * 60; + $this->setInterval(24 * 60 * 60); // 1 day + $this->setTimeSensitivity(self::TIME_INSENSITIVE); } /**