MDL-14974 improved columns caching implementation

This commit is contained in:
skodak
2008-05-25 09:31:38 +00:00
parent aa07a81368
commit a7544e377a
11 changed files with 36 additions and 44 deletions
+2 -2
View File
@@ -100,8 +100,8 @@ class postgres7_adodb_moodle_database extends adodb_moodle_database {
return SQL_PARAMS_QM;
}
public function get_columns($table) {
if (isset($this->columns[$table])) {
public function get_columns($table, $usecache=true) {
if ($usecache and isset($this->columns[$table])) {
return $this->columns[$table];
}