diff options
author | blizzz <blizzz@arthur-schiwon.de> | 2022-10-03 12:34:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-03 12:34:39 +0200 |
commit | 3efc9d7d376df82ef1e0000c2f3daccfce68cbfd (patch) | |
tree | 3e9ca90f8e75eb5b666fe811aa1a3281d7acaf6f /lib | |
parent | f0553280947173995fd615d936684964fa43cc1c (diff) | |
parent | 3ecd400cec44e0ec12dc0bb8935fc36cf3124f76 (diff) | |
download | nextcloud-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.php | 4 |
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; } |