Skip to content

Commit

Permalink
Merge pull request #3046 from nextcloud/issue-2190-imagepath-is-root-…
Browse files Browse the repository at this point in the history
…sensitive

Make sure different webroots use different cached paths
  • Loading branch information
LukasReschke authored Jan 27, 2017
2 parents 98dc583 + 77577b9 commit b5990b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ public function __construct($webRoot, \OC\Config $config) {
$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),
Expand Down

0 comments on commit b5990b7

Please sign in to comment.