diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2023-04-20 23:10:34 +0200 |
---|---|---|
committer | Arthur Schiwon (Rebase PR Action) <blizzz@users.noreply.github.com> | 2023-04-21 14:10:46 +0000 |
commit | 7519949f372c82c6b529766ca2eb48398e62776b (patch) | |
tree | ecfd09aa3da058c9b51b61d0e55b5962b3210d83 /lib | |
parent | dd3d689e04a5e1d558da937ca72980e0e2c7c404 (diff) | |
download | nextcloud-server-7519949f372c82c6b529766ca2eb48398e62776b.tar.gz nextcloud-server-7519949f372c82c6b529766ca2eb48398e62776b.zip |
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>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/base.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/base.php b/lib/base.php index 9c588bdaa76..ced5433a57e 100644 --- a/lib/base.php +++ b/lib/base.php @@ -601,7 +601,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(); |