Added Node activity

This commit is contained in:
Deon George
2012-12-07 16:12:58 +11:00
parent 7a3539cb95
commit c9a1d39912
5 changed files with 60 additions and 2 deletions

View File

@@ -111,7 +111,6 @@ abstract class ORM_TSM extends ORM {
private function isCacheable() {
$config = Kohana::$config->load('database')->{Kohana::$config->load('config')->client_type};
//echo Debug::vars(array('m'=>__METHOD__,'cpl'=>$config['cachepreload'],'tn'=>$this->_table_name,'db'=>count($this->_db_pending),'pend'=>$this->_db_pending,'pk'=>$this->_primary_key));
if ($config['caching'] AND isset($config['cachepreload'][$this->_table_name]) AND count($this->_db_pending) == 1 AND $this->_db_pending[0]['name'] == 'where' AND $this->_db_pending[0]['args'][0] == $this->_primary_key AND $this->_db_pending[0]['args'][1] == '=')
return $config['cachepreload'][$this->_table_name];
else