Merge pull request #3046 from nextcloud/issue-2190-imagepath-is-root-sensitive

Make sure different webroots use different cached paths
This commit is contained in:
Lukas Reschke 2017-01-27 10:14:22 +01:00 committed by GitHub
commit b5990b740d
1 changed files with 1 additions and 1 deletions

View File

@ -377,7 +377,7 @@ class Server extends ServerContainer implements IServerContainer {
$version = implode(',', $v);
$instanceId = \OC_Util::getInstanceId();
$path = \OC::$SERVERROOT;
$prefix = md5($instanceId . '-' . $version . '-' . $path);
$prefix = md5($instanceId . '-' . $version . '-' . $path . '-' . \OC::$WEBROOT);
return new \OC\Memcache\Factory($prefix, $c->getLogger(),
$config->getSystemValue('memcache.local', null),
$config->getSystemValue('memcache.distributed', null),