From 5ca9d884d78fd4439a74dde02fdcafb3ac7a40f4 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Tue, 20 Aug 2024 12:50:42 +0200 Subject: [PATCH] fix: don't recalculate folder size in Cache::delete if the entry didn't exist Signed-off-by: Robin Appelman --- lib/private/Files/Cache/Updater.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/private/Files/Cache/Updater.php b/lib/private/Files/Cache/Updater.php index e8c6d32599e46..ea2eb4fac99eb 100644 --- a/lib/private/Files/Cache/Updater.php +++ b/lib/private/Files/Cache/Updater.php @@ -150,9 +150,6 @@ public function remove($path) { $this->propagator->propagateChange($path, time(), -$entry->getSize()); } else { $this->propagator->propagateChange($path, time()); - if ($this->cache instanceof Cache) { - $this->cache->correctFolderSize($parent); - } } }