mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
Only return cached files if existing
This commit is contained in:
parent
a96c2b8354
commit
35a2fd3f89
1 changed files with 4 additions and 1 deletions
|
|
@ -365,7 +365,10 @@ class Encryption extends Wrapper {
|
|||
*/
|
||||
public function getLocalFile($path) {
|
||||
if ($this->encryptionManager->isEnabled()) {
|
||||
return $this->getCachedFile($path);
|
||||
$cachedFile = $this->getCachedFile($path);
|
||||
if (is_string($cachedFile)) {
|
||||
return $cachedFile;
|
||||
}
|
||||
}
|
||||
return $this->storage->getLocalFile($path);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue