From 948ab8a4d06b3821ab94c11a3a04c820e60d6c8a Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Thu, 10 May 2018 12:35:56 +0200 Subject: [PATCH] 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 --- lib/base.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/base.php b/lib/base.php index 5cfaccf59a..57a620db0e 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'); } }