EllisLab/CodeIgniter — pull request #609 by appleboy (2011-10-23 13:17:38+00:00)
Title: Add new feature: Output class support delete cache file

Hi,

I add new function of output class. We can delete cache file from application/cache directory anytime.

Example:

If you load welcome controller http://localhost/welcome/index

```php
public function index()
{
$this->output->cache(60);
$this->load->view('welcome_message');
}
```

If the file doesn't expired, we can use the following way to delete it according to URL you load.

```php
public function delete()
{
$this->output->delete_cache('/welcome/index');
}
```