fix performance issues

This commit is contained in:
Florin Peter 2013-04-11 22:55:48 +02:00
parent c3a284569b
commit 8f0bbdc5cb
1 changed files with 5 additions and 0 deletions

View File

@ -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' ) ) {