Misc fixes from live

This commit is contained in:
Deon George
2015-09-29 11:54:45 +10:00
parent df74512105
commit 425ea9ff10
10 changed files with 80 additions and 35 deletions

View File

@@ -26,6 +26,8 @@ abstract class ORM extends lnApp_ORM {
$this->where($this->_object_name.'.site_id','=',Company::instance()->site());
// Ensure we Cache our queries
// @todo: Disabled as it is not working as expected
/*
$caching = FALSE;
foreach ($this->_db_pending as $method)
if ($method['name'] == 'cached') {
@@ -35,6 +37,7 @@ abstract class ORM extends lnApp_ORM {
if (! $caching)
$this->cached(Kohana::$config->load('cache.orm.'.$this->_table_name));
*/
return parent::_build($type);
}