fix: always set storage id in Cache::get

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2024-07-05 17:25:40 +02:00
parent 5ff7bde3fb
commit 80f8c7949e
No known key found for this signature in database
GPG key ID: 42B69D8A64526EFB

View file

@ -120,11 +120,11 @@ class Cache implements ICache {
// normalize file
$file = $this->normalize($file);
$query->whereStorageId($this->getNumericStorageId())
->wherePath($file);
$query->wherePath($file);
} else { //file id
$query->whereFileId($file);
}
$query->whereStorageId($this->getNumericStorageId());
$result = $query->execute();
$data = $result->fetch();