diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-05-10 12:35:56 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-05-10 12:35:56 +0200 |
commit | 948ab8a4d06b3821ab94c11a3a04c820e60d6c8a (patch) | |
tree | c5201639f21dd3413987b456c8ad74c13fb48755 /lib/base.php | |
parent | 58e4ddd63807227d7477fed70f0297a124f64cdf (diff) | |
download | nextcloud-server-948ab8a4d06b3821ab94c11a3a04c820e60d6c8a.tar.gz nextcloud-server-948ab8a4d06b3821ab94c11a3a04c820e60d6c8a.zip |
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.php | 2 |
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'); } } |