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>
This commit is contained in:
Côme Chilliet 2025-06-05 18:03:56 +02:00
parent 89f51a8f4e
commit 12e7f46b30
No known key found for this signature in database
GPG key ID: A3E2F658B28C760A

View file

@ -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);