Skip to content

Commit

Permalink
Merge pull request #49874 from nextcloud/ci/revert/47342
Browse files Browse the repository at this point in the history
Revert "fix: don't recalculate folder size in Cache::delete if the en…
  • Loading branch information
icewind1991 authored Dec 16, 2024
2 parents 7c59119 + 44e4fc5 commit b9da727
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build/psalm-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1830,6 +1830,11 @@
<code><![CDATA[self::getGlobalCache()->getStorageInfo($storageId)]]></code>
</NullableReturnStatement>
</file>
<file src="lib/private/Files/Cache/Updater.php">
<RedundantCondition>
<code><![CDATA[$this->cache instanceof Cache]]></code>
</RedundantCondition>
</file>
<file src="lib/private/Files/Cache/Wrapper/CacheWrapper.php">
<LessSpecificImplementedReturnType>
<code><![CDATA[array]]></code>
Expand Down
3 changes: 3 additions & 0 deletions lib/private/Files/Cache/Updater.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ 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 b9da727

Please sign in to comment.