Skip to content

Commit deea42e

Browse files
committed
updated config - added persistent connection parameter
Signed-off-by: bidi47 <bidi@apidemia.com>
1 parent d2457d5 commit deea42e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎config/autoload/local.php.dist‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ $databases = [
1010
* Only one active connection is allowed at a time.
1111
* By default, the application uses the 'mariadb' connection.
1212
* You can switch to another connection by activating it under doctrine->connection->orm_default-->params.
13+
* Set 'persistent' to true to reuse database connections across requests (supported by pdo_mysql and pdo_pgsql).
1314
*/
1415
'mariadb' => [
1516
'host' => 'localhost',
@@ -18,6 +19,7 @@ $databases = [
1819
'password' => '',
1920
'port' => 3306,
2021
'driver' => 'pdo_mysql',
22+
'persistent' => false,
2123
'collation' => 'utf8mb4_general_ci',
2224
'table_prefix' => '',
2325
],
@@ -28,6 +30,7 @@ $databases = [
2830
'password' => '',
2931
'port' => 5432,
3032
'driver' => 'pdo_pgsql',
33+
'persistent' => false,
3134
'collation' => 'utf8mb4_general_ci',
3235
'table_prefix' => '',
3336
],

0 commit comments

Comments
 (0)