public function delete($segment_one = '', $segment_two = '')
	{
		if ($segment_one === '')
		{
			$segment_one  = ($this->CI->uri->segment(1) == FALSE) ? 'default' : $this->CI->uri->segment(1);
		}

		if ($segment_two === '')
		{
			$segment_two = ($this->CI->uri->segment(2) == FALSE) ? 'index' : $this->CI->uri->segment(2);
		}

		$dir_path = $this->db->cachedir.$segment_one.'+'.$segment_two.'/';
		delete_files($dir_path, TRUE);
	}
public function delete($segment_one = '', $segment_two = '')
	{
		if ($segment_one === '')
		{
			$segment_one  = ($this->CI->uri->segment(1) == FALSE) ? 'default' : $this->CI->uri->segment(1);
		}

		if ($segment_two === '')
		{
			$segment_two = ($this->CI->uri->segment(2) == FALSE) ? 'index' : $this->CI->uri->segment(2);
		}

		$dir_path = $this->db->cachedir.$segment_one.'+'.$segment_two.'/';
		delete_files($dir_path, TRUE);
	}
public function delete ( $ segment_one = '' , $ segment_two = '' ) { if ( $ segment_one === '' ) { $ segment_one = ( $ this -> CI -> uri -> segment ( 1 ) == FALSE ) ? 'default' : $ this -> CI -> uri -> segment ( 1 ) ; } if ( $ segment_two === '' ) { $ segment_two = ( $ this -> CI -> uri -> segment ( 2 ) == FALSE ) ? 'index' : $ this -> CI -> uri -> segment ( 2 ) ; } $ dir_path = $ this -> db -> cachedir . $ segment_one . '+' . $ segment_two . '/' ; delete_files ( $ dir_path , TRUE ) ; }
Delete cache files within a particular directory

@param	string	$segment_one
@param	string	$segment_two
@return	void
Delete cache files within a particular directory