Revert "fix: don't recalculate folder size in Cache::delete if the entry didn't exist"

This reverts commit 5ca9d884d7.

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
Daniel Kesselberg 2024-12-15 17:31:57 +01:00
parent 7c59119c03
commit 44e4fc5d41
No known key found for this signature in database
GPG key ID: 4A81C29F63464E8F
2 changed files with 8 additions and 0 deletions

View file

@ -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>

View file

@ -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);
}
}
}