mirror of
https://github.com/nextcloud/server.git
synced 2026-04-24 07:39:23 -04:00
Use unique combination of hostname/bucket/key for external storages
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
c43c2409a6
commit
2e804fb40b
1 changed files with 1 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue