Skip to content

Commit

Permalink
Merge pull request #47342 from nextcloud/cache-delete-notfound-size
Browse files Browse the repository at this point in the history
fix: don't recalculate folder size in Cache::delete if the entry didn't exist
  • Loading branch information
icewind1991 authored Dec 12, 2024
2 parents 7cc8a1b + 5ca9d88 commit c21888e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/private/Files/Cache/Updater.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,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);
}
}
}

Expand Down

0 comments on commit c21888e

Please sign in to comment.