diff options
-rw-r--r-- | build/psalm-baseline.xml | 5 | ||||
-rw-r--r-- | lib/private/Files/Cache/Updater.php | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/build/psalm-baseline.xml b/build/psalm-baseline.xml index 3072407ef54..00add5ee78e 100644 --- a/build/psalm-baseline.xml +++ b/build/psalm-baseline.xml @@ -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> 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); + } } } |