further pre-filter search result before setting up share source cache

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2022-08-17 13:49:21 +02:00
parent 312b719acf
commit b731c95b79

View file

@ -197,4 +197,12 @@ class Cache extends CacheJail {
]
);
}
public function getCacheEntryFromSearchResult(ICacheEntry $rawEntry): ?ICacheEntry {
if ($rawEntry->getStorageId() === $this->getNumericStorageId()) {
return parent::getCacheEntryFromSearchResult($rawEntry);
} else {
return null;
}
}
}