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 5cfaccf59abc8..57a620db0ec9a 100644 --- a/lib/base.php +++ b/lib/base.php @@ -891,6 +891,8 @@ protected static function registerAutoloaderCache() { self::$loader->setMemoryCache($memcacheFactory->createLocal('Autoloader')); } catch (\Exception $ex) { } + + self::$composerAutoloader->setApcuPrefix($instanceId . '-mainComposer'); } }