summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2024-02-15 16:51:52 +0100
committerJulius Härtl <jus@bitgrid.net>2024-02-26 10:31:25 +0100
commitd878263dda77398c0f6baaff770671f782cece33 (patch)
tree8672981d7a2d719752b0af9f26d3a5cea85df77d /apps/files_sharing
parent259073f8067cb5ba5ee6c735a8bd7ab55abc4147 (diff)
downloadnextcloud-server-d878263dda77398c0f6baaff770671f782cece33.tar.gz
nextcloud-server-d878263dda77398c0f6baaff770671f782cece33.zip
fix: only cleanup orphaned shared daly
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files_sharing')
-rw-r--r--apps/files_sharing/lib/DeleteOrphanedSharesJob.php10
1 files changed, 2 insertions, 8 deletions
diff --git a/apps/files_sharing/lib/DeleteOrphanedSharesJob.php b/apps/files_sharing/lib/DeleteOrphanedSharesJob.php
index d2cc39ff060..a9452cb3dcc 100644
--- a/apps/files_sharing/lib/DeleteOrphanedSharesJob.php
+++ b/apps/files_sharing/lib/DeleteOrphanedSharesJob.php
@@ -32,19 +32,13 @@ use OCP\BackgroundJob\TimedJob;
*/
class DeleteOrphanedSharesJob extends TimedJob {
/**
- * Default interval in minutes
- *
- * @var int $defaultIntervalMin
- **/
- protected $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);
}
/**