Browse Source

Limonade db persistent connection (#3739)

Joan Miquel 7 years ago
parent
commit
46550b53db
1 changed files with 1 additions and 0 deletions
  1. 1 0
      frameworks/PHP/limonade/index.php

+ 1 - 0
frameworks/PHP/limonade/index.php

@@ -3,6 +3,7 @@ require_once "vendor/sofadesign/limonade/lib/limonade.php";
 require_once "vendor/php-activerecord/php-activerecord/ActiveRecord.php";
 require_once "vendor/php-activerecord/php-activerecord/ActiveRecord.php";
 
 
 function configure() {
 function configure() {
+	ActiveRecord\Connection::$PDO_OPTIONS[PDO::ATTR_PERSISTENT] = true;
 	$cfg = ActiveRecord\Config::instance();
 	$cfg = ActiveRecord\Config::instance();
 	$cfg->set_model_directory("models");
 	$cfg->set_model_directory("models");
 	$cfg->set_connections(array(
 	$cfg->set_connections(array(