CodeIgniter Forums

Full Version: cannot able to clear cache files
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I want to clear cache files . after removing history old page only be displayed. how to solve?
1,$this->output->delete_cache();
2,$this->output->clear_all_cache();
 i put in the controller error occured
Fatal error: Call to undefined method CI_Output::delete_cache() in C:\xampp\htdocs\*****\****\controllers\auth.php on line 16
Maybe if you read the User's Guide you would not need to ask this question!

PHP Code:
$this->cache->delete('cache_item_id');

$this->cache->clean();

var_dump($this->cache->cache_info()); 
Hello, 
As I read you have an issue with your cache file. You aren't able to delete your cache files.
Actually, you get on a fatal error because you use a wrong code or you call your cache files via wrong way.
To resolve this issue you have to call your cache files via right code  which is given below
$this->cache->delete('cache_item_id');
Put your cache item id their
$this->cache->clean();

var_dump($this->cache->cache_info());

Hope this will help you 
Thanks