Some more performance improvements and caching

This commit is contained in:
Deon George
2012-12-06 14:50:06 +11:00
parent 74b3bfb408
commit 528a83a4fd
38 changed files with 303 additions and 103 deletions

View File

@@ -14,5 +14,12 @@ abstract class Database extends Kohana_Database {
// Enable TSM SHOW commands
const SHOW = 5;
const SET = 6;
// We need to set our default database so that any internal calls to Database::instance() use the right database.
public static function instance($name = NULL, array $config = NULL) {
Database::$default = Kohana::$config->load('config')->client_type;
return parent::instance($name,$config);
}
}
?>