diff options
author | Andreas Fischer <bantu@owncloud.com> | 2013-10-21 15:35:52 +0200 |
---|---|---|
committer | Andreas Fischer <bantu@owncloud.com> | 2013-10-22 11:17:15 +0200 |
commit | dde832b76cf9dc17be03491e7130790269843d43 (patch) | |
tree | b9d545a3f74e38a0fec5f0eb6b8edd1f0c220168 /lib | |
parent | f5e2b92688b269f83e401f8e92758e60d92384d2 (diff) | |
download | nextcloud-server-dde832b76cf9dc17be03491e7130790269843d43.tar.gz nextcloud-server-dde832b76cf9dc17be03491e7130790269843d43.zip |
Only write-back on cache miss.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/autoloader.php | 6 |
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) { |