From: Florin Peter Date: Thu, 11 Apr 2013 20:55:48 +0000 (+0200) Subject: fix performance issues X-Git-Tag: v6.0.0alpha2~743^2~186^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8f0bbdc5cbd17d8fdaa773a5a3558b7af7f0a734;p=nextcloud-server.git fix performance issues --- diff --git a/apps/files_encryption/lib/stream.php b/apps/files_encryption/lib/stream.php index 8bacb981268..dcc12c9f9ea 100644 --- a/apps/files_encryption/lib/stream.php +++ b/apps/files_encryption/lib/stream.php @@ -224,6 +224,11 @@ class Stream { */ 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 // file to be written if ( $this->rootView->file_exists( $this->userId . '/'. 'files_encryption' . '/' . 'keyfiles' . '/' . $this->rawPath . '.key' ) ) {