still include the share target in the cache key for validating share mount

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2023-01-16 13:09:50 +01:00 committed by Vincent Petry
parent f74ba9cb5d
commit 953f9ea2b2
No known key found for this signature in database
GPG key ID: E055D6A4D513575C

View file

@ -104,7 +104,7 @@ class SharedMount extends MountPoint implements MoveableMount {
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;