Browse Source

fix: Use application ids as well as versions in the cache prefix

Avoids a corner case issue if one application was disabled and another
 one enabled with the same version, just to be safe.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
pull/52793/head
Côme Chilliet 7 months ago
parent
commit
12e7f46b30
No known key found for this signature in database GPG Key ID: A3E2F658B28C760A
  1. 2
      lib/private/Server.php

2
lib/private/Server.php

@ -620,7 +620,7 @@ class Server extends ServerContainer implements IServerContainer {
];
}
$v['core'] = implode(',', $serverVersion->getVersion());
$version = implode(',', $v);
$version = implode(',', array_keys($v)) . implode(',', $v);
$instanceId = \OC_Util::getInstanceId();
$path = \OC::$SERVERROOT;
return md5($instanceId . '-' . $version . '-' . $path);

Loading…
Cancel
Save