]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix performance issues
authorFlorin Peter <fp@datawerk.de>
Thu, 11 Apr 2013 20:55:48 +0000 (22:55 +0200)
committerFlorin Peter <fp@datawerk.de>
Thu, 11 Apr 2013 20:55:48 +0000 (22:55 +0200)
apps/files_encryption/lib/stream.php

index 8bacb981268d4b813d2c57799819829772371339..dcc12c9f9ead8a300c8781639e2b8ae25344a336 100644 (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' ) ) {