mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
add the server roots and version info hash to apcu prefix
fixes collissions when more than one instance is running on the same system For the memcaches we use a more complex prefix, where version and instance ID are incorporated. We do not have this data at hand at this point of time. But we can get the mtime of the version.php file relatively cheap. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
parent
256f48a48c
commit
bc6f7af091
1 changed files with 1 additions and 1 deletions
|
|
@ -598,7 +598,7 @@ class OC {
|
|||
|
||||
// Add default composer PSR-4 autoloader
|
||||
self::$composerAutoloader = require_once OC::$SERVERROOT . '/lib/composer/autoload.php';
|
||||
self::$composerAutoloader->setApcuPrefix('composer_autoload');
|
||||
self::$composerAutoloader->setApcuPrefix('composer_autoload_' . md5(OC::$SERVERROOT . '_' . filemtime(OC::$SERVERROOT . '/version.php')));
|
||||
|
||||
try {
|
||||
self::initPaths();
|
||||
|
|
|
|||
Loading…
Reference in a new issue