aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2024-01-23 19:39:28 +0100
committerGitHub <noreply@github.com>2024-01-23 19:39:28 +0100
commit8c777145f22fbea2359298466b6b28e9253717fe (patch)
tree6595fcda71102f51bb0af68bcfda8510b8948c2b /lib/public
parent8ba7de87f56928dccfda492be7da036b61b9ea72 (diff)
parentcc75294eb6b16b916a342e69998935f89222619d (diff)
downloadnextcloud-server-8c777145f22fbea2359298466b6b28e9253717fe.tar.gz
nextcloud-server-8c777145f22fbea2359298466b6b28e9253717fe.zip
Merge pull request #42597 from nextcloud/perf/s3-mkdir-update-size
perf: Avoid updating the folder size if we know the size difference
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/Files/Cache/IUpdater.php2
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