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>
This commit is contained in:
Roeland Jago Douma 2018-05-10 12:35:56 +02:00
parent 58e4ddd638
commit 948ab8a4d0
No known key found for this signature in database
GPG Key ID: F941078878347C0C
1 changed files with 2 additions and 0 deletions

View File

@ -891,6 +891,8 @@ class OC {
self::$loader->setMemoryCache($memcacheFactory->createLocal('Autoloader'));
} catch (\Exception $ex) {
}
self::$composerAutoloader->setApcuPrefix($instanceId . '-mainComposer');
}
}