Skip to content

Commit 6d4a6e6

Browse files
committed
Updated to use persistent connections.
1 parent ad5ba18 commit 6d4a6e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

class.PDO.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function connect(){
2424
$password = DATABASE_PASS;
2525

2626
try {
27-
$this->pdo = new PDO($dsn, $user, $password);
27+
$this->pdo = new PDO($dsn, $user, $password, array(PDO::ATTR_PERSISTENT => true));
2828
return true;
2929
} catch (PDOException $e) {
3030
$this->error = $e->getMessage();

0 commit comments

Comments
 (0)