Dashboard functional

This commit is contained in:
Deon George
2014-09-05 22:19:22 +10:00
parent 30f6717c9f
commit ef16492de2
6 changed files with 231 additions and 15 deletions

View File

@@ -41,17 +41,6 @@ abstract class ORM extends lnApp_ORM {
if (! in_array($this->_table_name,ORM::$no_site_id_tables))
$this->where($this->_object_name.'.site_id','=',Company::instance()->site());
// Ensure we Cache our queries
$caching = FALSE;
foreach ($this->_db_pending as $method)
if ($method['name'] == 'cached') {
$caching = TRUE;
break;
}
if (! $caching)
$this->cached(Kohana::$config->load('cache.orm.'.$this->_table_name));
return parent::_build($type);
}