diff options
author | Morris Jobke <hey@morrisjobke.de> | 2020-08-06 20:10:25 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2020-08-06 22:31:39 +0200 |
commit | 45428e49482b8c1916859fbe80564670fa51f8ff (patch) | |
tree | 4f30448487a473296866b83051a66de262571077 /lib/private/Files/Mount/ObjectStorePreviewCacheMountProvider.php | |
parent | 4fdd38c7378415c552859dc4c0d2dda709f699ec (diff) | |
download | nextcloud-server-45428e49482b8c1916859fbe80564670fa51f8ff.tar.gz nextcloud-server-45428e49482b8c1916859fbe80564670fa51f8ff.zip |
Add config option to enable multibucket preview distribution
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private/Files/Mount/ObjectStorePreviewCacheMountProvider.php')
-rw-r--r-- | lib/private/Files/Mount/ObjectStorePreviewCacheMountProvider.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/Files/Mount/ObjectStorePreviewCacheMountProvider.php b/lib/private/Files/Mount/ObjectStorePreviewCacheMountProvider.php index dba1dfc28e5..9bbb744bbcc 100644 --- a/lib/private/Files/Mount/ObjectStorePreviewCacheMountProvider.php +++ b/lib/private/Files/Mount/ObjectStorePreviewCacheMountProvider.php @@ -55,6 +55,9 @@ class ObjectStorePreviewCacheMountProvider implements IRootMountProvider { if (!is_array($this->config->getSystemValue('objectstore_multibucket'))) { return []; } + if ($this->config->getSystemValue('objectstore.multibucket.preview-distribution', false) !== true) { + return []; + } $instanceId = $this->config->getSystemValueString('instanceid', ''); $mountPoints = []; |