mirror of
https://github.com/nextcloud/server.git
synced 2026-04-24 15:53:36 -04:00
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:
parent
7c59119c03
commit
44e4fc5d41
2 changed files with 8 additions and 0 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue