Use unique combination of hostname/bucket/key for external storages

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2021-10-29 13:27:15 +02:00 committed by backportbot[bot]
parent c43c2409a6
commit 2e804fb40b

View file

@ -83,6 +83,7 @@ class AmazonS3 extends \OC\Files\Storage\Common {
public function __construct($parameters) {
parent::__construct($parameters);
$this->parseParams($parameters);
$this->id = 'amazon::external::' . md5($this->params['hostname'] . ':' . $this->params['bucket'] . ':' . $this->params['key']);
$this->objectCache = new CappedMemoryCache();
$this->directoryCache = new CappedMemoryCache();
$this->filesCache = new CappedMemoryCache();