Only return cached files if existing
This commit is contained in:
parent
a96c2b8354
commit
35a2fd3f89
|
@ -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 New Issue