diff options
author | Julius Härtl <jus@bitgrid.net> | 2024-01-05 14:56:33 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2024-01-12 14:21:08 +0100 |
commit | cc75294eb6b16b916a342e69998935f89222619d (patch) | |
tree | 8308a12e5dd478155ce62b290524f6b094247c0b /lib/public/Files | |
parent | 48628b90690d8204e7875d561b8115c526cc9176 (diff) | |
download | nextcloud-server-cc75294eb6b16b916a342e69998935f89222619d.tar.gz nextcloud-server-cc75294eb6b16b916a342e69998935f89222619d.zip |
perf: Avoid updating the folder size if we know the size difference
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/public/Files')
-rw-r--r-- | lib/public/Files/Cache/IUpdater.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/public/Files/Cache/IUpdater.php b/lib/public/Files/Cache/IUpdater.php index 5a776d4be7e..625bc91c5a7 100644 --- a/lib/public/Files/Cache/IUpdater.php +++ b/lib/public/Files/Cache/IUpdater.php @@ -53,7 +53,7 @@ interface IUpdater { * @param int $time * @since 9.0.0 */ - public function update($path, $time = null); + public function update($path, $time = null, ?int $sizeDifference = null); /** * Remove $path from the cache and update the size, etag and mtime of the parent folders |