title: Delete cache on a dynamic page in CodeIgniter
body: <p>I have reviewed the documentation of CI regarding caching a full page here:
  <a href="https://www.codeigniter.com/user_guide/general/caching.html" rel="nofollow">https://www.codeigniter.com/user_guide/general/caching.html</a></p>
  
  <p>I understand that I can cache a controller/function using the below; anywhere inside that function:</p>
  
  <pre><code>$this-&gt;output-&gt;cache($n);
  </code></pre>
  
  <p>However my problem is that for example we have a page:</p>
  
  <p>article/specific/this-is-a-slug</p>
  
  <p>as you can see the </p>
  
  <ul>
  <li>controller->article</li>
  <li>function->specific </li>
  <li>slug->this-is-a-slug</li>
  </ul>
  
  <p>When I cache the function inside itself, the system automatically detects that slug and creates a new cache for each slug uniquely.</p>
  
  <p>However when I want to delete the cache for that specific slug I do not know how I can do it outside the function itself:</p>
  
  <pre><code>$this-&gt;output-&gt;delete_cache('/foo/bar');
  </code></pre>
  
  <p>How can specific that I need only the cache for this specific slug to be deleted?</p>