]> source.dussan.org Git - nextcloud-server.git/commitdiff
Only write-back on cache miss.
authorAndreas Fischer <bantu@owncloud.com>
Mon, 21 Oct 2013 13:35:52 +0000 (15:35 +0200)
committerAndreas Fischer <bantu@owncloud.com>
Tue, 22 Oct 2013 09:17:15 +0000 (11:17 +0200)
lib/autoloader.php

index b0dc89040984d9a5a5ce1cd284e98c4dc2c9ea81..3228ca29b2288ca768cd5c1412e9bdfc6f6bc88b 100644 (file)
@@ -133,10 +133,10 @@ class Autoloader {
                                        $pathsToRequire[] = $fullPath;
                                }
                        }
-               }
 
-               if ($this->memoryCache) {
-                       $this->memoryCache->set($class, $pathsToRequire, 60); // cache 60 sec
+                       if ($this->memoryCache) {
+                               $this->memoryCache->set($class, $pathsToRequire, 60); // cache 60 sec
+                       }
                }
 
                foreach ($pathsToRequire as $fullPath) {