|
@@ -68,7 +68,6 @@ declare(strict_types=1);
|
|
|
|
|
|
use OC\Encryption\HookManager;
|
|
|
use OC\EventDispatcher\SymfonyAdapter;
|
|
|
-use OC\Files\Filesystem;
|
|
|
use OC\Share20\Hooks;
|
|
|
use OCP\EventDispatcher\IEventDispatcher;
|
|
|
use OCP\Group\Events\UserRemovedEvent;
|
|
@@ -115,6 +114,8 @@ class OC {
|
|
|
|
|
|
public static string $configDir;
|
|
|
|
|
|
+ public static int $VERSION_MTIME = 0;
|
|
|
+
|
|
|
/**
|
|
|
* requested app
|
|
|
*/
|
|
@@ -601,7 +602,8 @@ class OC {
|
|
|
|
|
|
// Add default composer PSR-4 autoloader
|
|
|
self::$composerAutoloader = require_once OC::$SERVERROOT . '/lib/composer/autoload.php';
|
|
|
- self::$composerAutoloader->setApcuPrefix('composer_autoload');
|
|
|
+ OC::$VERSION_MTIME = filemtime(OC::$SERVERROOT . '/version.php');
|
|
|
+ self::$composerAutoloader->setApcuPrefix('composer_autoload_' . md5(OC::$SERVERROOT . '_' . OC::$VERSION_MTIME));
|
|
|
|
|
|
try {
|
|
|
self::initPaths();
|