Enabled caching

This commit is contained in:
Deon George
2011-05-28 19:46:46 +10:00
parent dcd6a54cb9
commit 8b685a84dd
6 changed files with 78 additions and 7 deletions

View File

@@ -44,6 +44,17 @@ class Database_TSM extends Database {
public function rollback() {}
public function set_charset($charset) {}
/**
* Return the caching defined in the current configuration.
*
* $cache_time = $db->caching("table");
*
* @return string
*/
public function caching($table) {
return ($this->_config['caching'] AND isset($this->_config['cache'][$table])) ? $this->_config['cache'][$table] : FALSE;
}
public function connect() {
if ($this->_connection)
return;
@@ -256,7 +267,7 @@ class Database_TSM extends Database {
}
// TSM attributes
$column['comment'] = $row['REMARKS'];
$column['comment'] = $row['REMARKS'];
$columns[$row['COLNAME']] = $column;
}