mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
Merge pull request #32899 from Retidurc/pdo-attr-persistent
Expose Doctrine support for persistent connections in PDO in Nextcloud settings
This commit is contained in:
commit
3efc9d7d37
2 changed files with 10 additions and 0 deletions
|
|
@ -138,6 +138,12 @@ $CONFIG = [
|
|||
*/
|
||||
'dbtableprefix' => '',
|
||||
|
||||
/**
|
||||
* Enable persistent connexions to the database.
|
||||
* This setting uses the "persistent" option from doctrine dbal, wich in turns
|
||||
* uses the PDO::ATTR_PERSISTENT option from de pdo driver.
|
||||
*/
|
||||
'dbpersistent' => '',
|
||||
|
||||
/**
|
||||
* Indicates whether the Nextcloud instance was installed successfully; ``true``
|
||||
|
|
|
|||
|
|
@ -233,6 +233,10 @@ class ConnectionFactory {
|
|||
];
|
||||
}
|
||||
|
||||
if ($this->config->getValue('dbpersistent', false)) {
|
||||
$connectionParams['persistent'] = true;
|
||||
}
|
||||
|
||||
return $connectionParams;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue