public function find_all()
 {
     $cache = $this->cache->file->get($this->cache_file);
     if (!$cache) {
         $result = parent::find_all();
         $this->cache->file->save($this->cache_file, $result, 1000000);
         return $result;
     }
     return $cache;
 }
Exemple #2
0
	public function find_all($show_deleted=false) 
	{
		if ($show_deleted === false)
		{
			$this->db->where('deleted', 0);
		}
		
		$this->db->join('roles', 'roles.role_id = users.role_id', 'left');
		
		return parent::find_all();
	}