aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2024-12-15 17:31:57 +0100
committerDaniel Kesselberg <mail@danielkesselberg.de>2024-12-16 14:03:33 +0100
commit44e4fc5d419ffc9f5e2abf37489636f7e30cbd54 (patch)
tree3c48c290995e5464e99dcec77912ba423d6cfafd /lib
parent7c59119c03c491f3534021b7011adfebf6e27b19 (diff)
downloadnextcloud-server-44e4fc5d419ffc9f5e2abf37489636f7e30cbd54.tar.gz
nextcloud-server-44e4fc5d419ffc9f5e2abf37489636f7e30cbd54.zip
Revert "fix: don't recalculate folder size in Cache::delete if the entry didn't exist"ci/revert/47342
This reverts commit 5ca9d884d78fd4439a74dde02fdcafb3ac7a40f4. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Files/Cache/Updater.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/Files/Cache/Updater.php b/lib/private/Files/Cache/Updater.php
index 6cf3bd096d8..42812dbc882 100644
--- a/lib/private/Files/Cache/Updater.php
+++ b/lib/private/Files/Cache/Updater.php
@@ -152,6 +152,9 @@ class Updater implements IUpdater {
$this->propagator->propagateChange($path, time(), -$entry->getSize());
} else {
$this->propagator->propagateChange($path, time());
+ if ($this->cache instanceof Cache) {
+ $this->cache->correctFolderSize($parent);
+ }
}
}