aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorblizzz <blizzz@arthur-schiwon.de>2022-10-03 12:34:39 +0200
committerGitHub <noreply@github.com>2022-10-03 12:34:39 +0200
commit3efc9d7d376df82ef1e0000c2f3daccfce68cbfd (patch)
tree3e9ca90f8e75eb5b666fe811aa1a3281d7acaf6f /lib
parentf0553280947173995fd615d936684964fa43cc1c (diff)
parent3ecd400cec44e0ec12dc0bb8935fc36cf3124f76 (diff)
downloadnextcloud-server-3efc9d7d376df82ef1e0000c2f3daccfce68cbfd.tar.gz
nextcloud-server-3efc9d7d376df82ef1e0000c2f3daccfce68cbfd.zip
Merge pull request #32899 from Retidurc/pdo-attr-persistent
Expose Doctrine support for persistent connections in PDO in Nextcloud settings
Diffstat (limited to 'lib')
-rw-r--r--lib/private/DB/ConnectionFactory.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/DB/ConnectionFactory.php b/lib/private/DB/ConnectionFactory.php
index 95f3185bcdb..1b0ac436364 100644
--- a/lib/private/DB/ConnectionFactory.php
+++ b/lib/private/DB/ConnectionFactory.php
@@ -233,6 +233,10 @@ class ConnectionFactory {
];
}
+ if ($this->config->getValue('dbpersistent', false)) {
+ $connectionParams['persistent'] = true;
+ }
+
return $connectionParams;
}