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

Signed-off-by: Julius Härtl <jus@bitgrid.net>
pull/29635/head
Julius Härtl 2021-10-29 13:27:15 +07:00 committed by backportbot[bot]
parent e955240667
commit ac1651c86d
1 changed files with 1 additions and 0 deletions

@ -84,6 +84,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();