Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-05-10 13:35:56 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2018-05-10 13:35:56 +0300
commit948ab8a4d06b3821ab94c11a3a04c820e60d6c8a (patch)
treec5201639f21dd3413987b456c8ad74c13fb48755 /lib/base.php
parent58e4ddd63807227d7477fed70f0297a124f64cdf (diff)
Use APCu caching of composer
Should potentially shave of a few ms when loading classes of apps that don't ship their own autoloader. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/base.php b/lib/base.php
index 5cfaccf59ab..57a620db0ec 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -891,6 +891,8 @@ class OC {
self::$loader->setMemoryCache($memcacheFactory->createLocal('Autoloader'));
} catch (\Exception $ex) {
}
+
+ self::$composerAutoloader->setApcuPrefix($instanceId . '-mainComposer');
}
}