title: delete CodeIgniter Query Cache
body: <p>When I make Query Caching in CodeIgniter by <code>$this->db->cache_on();</code> it will make folder and file,folder named in <code>controller+method</code> for example <code>show+73</code>.
  but when I delete row which has 73 id,from table and use <code>$this->db->cache_delete('show', $id);</code> to delete cache too,it will not work.It exist and return response when I call <code>show/73</code>
  how should I solve it?</p>
  
  <p>my code:</p>
  
  <p>which return result(in model)</p>
  
  <pre><code>public function temp($id)
  {
      $this-&gt;db-&gt;cache_on();
      $this-&gt;db-&gt;where('id',$id);
      $query = $this-&gt;db-&gt;get('system_store_table');
      return $query-&gt;result();
  }
  </code></pre>
  
  <p>which delete row and cache from table. (it will delete row from table successfully,but can't delete cache of it)</p>
  
  <pre><code>public function delete($id = 0)
  {
      $this-&gt;db-&gt;flush_cache();
      $this-&gt;db-&gt;where('id',$id);
      $this-&gt;db-&gt;delete('system_store_table');
      $this-&gt;db-&gt;cache_delete('show', $id);
      if ($this-&gt;db-&gt;affected_rows() != 0)
          return TRUE;
      return FALSE;
  }
  </code></pre>