From 9866e8190d2e369ebab8f8980ae442d859c7a981 Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Fri, 20 Feb 2026 17:36:34 +0100 Subject: [PATCH] fix(propagator): Don't run queries if no parents Signed-off-by: Carl Schwan --- lib/private/Files/Cache/Propagator.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/private/Files/Cache/Propagator.php b/lib/private/Files/Cache/Propagator.php index 3b647a5ac63..dafdc6e12cd 100644 --- a/lib/private/Files/Cache/Propagator.php +++ b/lib/private/Files/Cache/Propagator.php @@ -62,6 +62,10 @@ class Propagator implements IPropagator { } } + if ($parents === []) { + return; + } + if ($this->inBatch) { foreach ($parents as $parent) { $this->addToBatch($parent, $time, $sizeDifference);