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,7 +364,10 @@ class Encryption extends Wrapper {
* @return string * @return string
*/ */
public function getLocalFile($path) { public function getLocalFile($path) {
return $this->getCachedFile($path); if ($this->encryptionManager->isEnabled()) {
return $this->getCachedFile($path);
}
return $this->storage->getLocalFile($path);
} }
/** /**