diff options
author | Robin Appelman <robin@icewind.nl> | 2024-07-05 17:25:40 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2024-07-17 15:46:31 +0200 |
commit | 80f8c7949e2ee224f1f8ec0eb1cf7e6a3513f186 (patch) | |
tree | eb7791c146d75bc07328f6fac433071298dd6120 | |
parent | 5ff7bde3fb1213cb0141d2e33fdc762298103116 (diff) | |
download | nextcloud-server-80f8c7949e2ee224f1f8ec0eb1cf7e6a3513f186.tar.gz nextcloud-server-80f8c7949e2ee224f1f8ec0eb1cf7e6a3513f186.zip |
fix: always set storage id in Cache::get
Signed-off-by: Robin Appelman <robin@icewind.nl>
-rw-r--r-- | lib/private/Files/Cache/Cache.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Files/Cache/Cache.php b/lib/private/Files/Cache/Cache.php index 940b192e735..a4290549dd9 100644 --- a/lib/private/Files/Cache/Cache.php +++ b/lib/private/Files/Cache/Cache.php @@ -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(); |