Only use cached files in case encryption is enabled - in any other case let the underlying storage handle this accordingly - refs #16061 #16062 and others
This commit is contained in:
parent
767cf2774a
commit
a96c2b8354
|
@ -364,8 +364,11 @@ class Encryption extends Wrapper {
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function getLocalFile($path) {
|
public function getLocalFile($path) {
|
||||||
|
if ($this->encryptionManager->isEnabled()) {
|
||||||
return $this->getCachedFile($path);
|
return $this->getCachedFile($path);
|
||||||
}
|
}
|
||||||
|
return $this->storage->getLocalFile($path);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the wrapped storage's value for isLocal()
|
* Returns the wrapped storage's value for isLocal()
|
||||||
|
|
Loading…
Reference in New Issue