diff --git a/apps/files_sharing/lib/SharedMount.php b/apps/files_sharing/lib/SharedMount.php index 467495581466f..1e0b2d921e3f2 100644 --- a/apps/files_sharing/lib/SharedMount.php +++ b/apps/files_sharing/lib/SharedMount.php @@ -104,7 +104,7 @@ private function verifyMountPoint( array $mountpoints, CappedMemoryCache $folderExistCache ) { - $cacheKey = $this->user->getUID() . '/' . $share->getId(); + $cacheKey = $this->user->getUID() . '/' . $share->getId() . '/' . $share->getTarget(); $cached = $this->cache->get($cacheKey); if ($cached !== null) { return $cached;