diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2020-10-01 08:44:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-01 08:44:51 +0200 |
commit | 7b3510491ef719650bd72e3919c4f6c5c7c42c88 (patch) | |
tree | bc89459287d3f048ab81c3722f31a19adc06fba6 /lib | |
parent | e359760228eaa60720c631142c612f975a9c725e (diff) | |
parent | 7954356d4e64c6b4eb61eac05f5babfc44401dbb (diff) | |
download | nextcloud-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.php | 5 | ||||
-rw-r--r-- | lib/public/Files/Config/IUserMountCache.php | 7 |
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; } |