summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2020-10-01 08:44:51 +0200
committerGitHub <noreply@github.com>2020-10-01 08:44:51 +0200
commit7b3510491ef719650bd72e3919c4f6c5c7c42c88 (patch)
treebc89459287d3f048ab81c3722f31a19adc06fba6 /lib
parente359760228eaa60720c631142c612f975a9c725e (diff)
parent7954356d4e64c6b4eb61eac05f5babfc44401dbb (diff)
downloadnextcloud-server-7b3510491ef719650bd72e3919c4f6c5c7c42c88.tar.gz
nextcloud-server-7b3510491ef719650bd72e3919c4f6c5c7c42c88.zip
Merge pull request #22802 from nextcloud/backport/stable18/22116-22648-22761
[stable18] Fix share transfer of single files and on the transfered node
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Files/Config/UserMountCache.php5
-rw-r--r--lib/public/Files/Config/IUserMountCache.php7
2 files changed, 12 insertions, 0 deletions
diff --git a/lib/private/Files/Config/UserMountCache.php b/lib/private/Files/Config/UserMountCache.php
index 9cf3b43a431..32bfd5a71f3 100644
--- a/lib/private/Files/Config/UserMountCache.php
+++ b/lib/private/Files/Config/UserMountCache.php
@@ -409,4 +409,9 @@ class UserMountCache implements IUserMountCache {
$result->closeCursor();
return $results;
}
+
+ public function clear(): void {
+ $this->cacheInfoCache = new CappedMemoryCache();
+ $this->mountsForUsers = new CappedMemoryCache();
+ }
}
diff --git a/lib/public/Files/Config/IUserMountCache.php b/lib/public/Files/Config/IUserMountCache.php
index 9fca98dc843..fde4898bd39 100644
--- a/lib/public/Files/Config/IUserMountCache.php
+++ b/lib/public/Files/Config/IUserMountCache.php
@@ -117,4 +117,11 @@ interface IUserMountCache {
* @since 13.0.0
*/
public function getUsedSpaceForUsers(array $users);
+
+ /**
+ * Clear all entries from the in-memory cache
+ *
+ * @since 20.0.0
+ */
+ public function clear(): void;
}