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:
Thomas Müller 2015-05-05 16:19:24 +02:00
parent 767cf2774a
commit a96c2b8354
1 changed files with 4 additions and 1 deletions

View File

@ -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()