fix performance issues
This commit is contained in:
parent
c3a284569b
commit
8f0bbdc5cb
|
@ -224,6 +224,11 @@ class Stream {
|
||||||
*/
|
*/
|
||||||
public function getKey() {
|
public function getKey() {
|
||||||
|
|
||||||
|
// fix performance issues
|
||||||
|
if(isset($this->keyfile) && isset($this->encKeyfile)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
// If a keyfile already exists for a file named identically to
|
// If a keyfile already exists for a file named identically to
|
||||||
// file to be written
|
// file to be written
|
||||||
if ( $this->rootView->file_exists( $this->userId . '/'. 'files_encryption' . '/' . 'keyfiles' . '/' . $this->rawPath . '.key' ) ) {
|
if ( $this->rootView->file_exists( $this->userId . '/'. 'files_encryption' . '/' . 'keyfiles' . '/' . $this->rawPath . '.key' ) ) {
|
||||||
|
|
Loading…
Reference in New Issue