From b86de9a19941904623147d6557a8eab77bbf15a0 Mon Sep 17 00:00:00 2001 From: "szabolcs.gyuris" Date: Fri, 27 Jun 2025 09:12:01 +0000 Subject: [PATCH] slowness fix --- lib/private/Files/Cache/Updater.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/private/Files/Cache/Updater.php b/lib/private/Files/Cache/Updater.php index 069861198bb38..721853c1397b8 100644 --- a/lib/private/Files/Cache/Updater.php +++ b/lib/private/Files/Cache/Updater.php @@ -140,6 +140,11 @@ public function update($path, $time = null, ?int $sizeDifference = null) { $sizeDifference = null; } + $appDataPath = 'appdata_' . \OC_Util::getInstanceId() . '/end_to_end_encryption/meta-data'; + if (str_starts_with($path, $appDataPath)) { + return; + } + // scanner didn't provide size info, fallback to full size calculation if ($this->cache instanceof Cache && $sizeDifference === null) { $this->cache->correctFolderSize($path, $data); @@ -167,6 +172,11 @@ public function remove($path) { $this->cache->remove($path); + $appDataPath = 'appdata_' . \OC_Util::getInstanceId() . '/end_to_end_encryption/meta-data'; + if (str_starts_with($path, $appDataPath)) { + return; + } + $this->correctParentStorageMtime($path); if ($entry instanceof ICacheEntry) { $this->propagator->propagateChange($path, time(), -$entry->getSize());