Skip to content

Commit

Permalink
Use APCu caching of composer
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
rullzer committed May 10, 2018
1 parent 58e4ddd commit 948ab8a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/base.php
Original file line number Diff line number Diff line change
Expand Up @@ -891,6 +891,8 @@ protected static function registerAutoloaderCache() {
self::$loader->setMemoryCache($memcacheFactory->createLocal('Autoloader'));
} catch (\Exception $ex) {
}

self::$composerAutoloader->setApcuPrefix($instanceId . '-mainComposer');
}
}

Expand Down

0 comments on commit 948ab8a

Please sign in to comment.