diff options
author | Julius Härtl <jus@bitgrid.net> | 2024-01-05 14:56:33 +0100 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2024-04-05 12:57:39 +0000 |
commit | 5ec8f0b075f8f875a652789e18ad8d1cd6baeabf (patch) | |
tree | 41009df4af199f940606b186318aa49683d3d666 /lib/public | |
parent | 90e68f0ff56a2416cb98a2dd1fd1e2dac9cf53e7 (diff) | |
download | nextcloud-server-5ec8f0b075f8f875a652789e18ad8d1cd6baeabf.tar.gz nextcloud-server-5ec8f0b075f8f875a652789e18ad8d1cd6baeabf.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')
-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 |