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

Signed-off-by: Julius Härtl <jus@bitgrid.net>
pull/29634/head
Julius Härtl 3 years ago
parent cac6eed35a
commit 71d59bc6fc
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF

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

Loading…
Cancel
Save