summaryrefslogtreecommitdiffstats
path: root/lib/autoloader.php
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@owncloud.com>2013-10-21 15:35:52 +0200
committerAndreas Fischer <bantu@owncloud.com>2013-10-22 11:17:15 +0200
commitdde832b76cf9dc17be03491e7130790269843d43 (patch)
treeb9d545a3f74e38a0fec5f0eb6b8edd1f0c220168 /lib/autoloader.php
parentf5e2b92688b269f83e401f8e92758e60d92384d2 (diff)
downloadnextcloud-server-dde832b76cf9dc17be03491e7130790269843d43.tar.gz
nextcloud-server-dde832b76cf9dc17be03491e7130790269843d43.zip
Only write-back on cache miss.
Diffstat (limited to 'lib/autoloader.php')
-rw-r--r--lib/autoloader.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/autoloader.php b/lib/autoloader.php
index b0dc8904098..3228ca29b22 100644
--- a/lib/autoloader.php
+++ b/lib/autoloader.php
@@ -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) {