Welcome Guest, Not a member yet? Register   Sign In
cannot able to clear cache files
#1

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
Reply
#2

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()); 
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#3

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 
Reply




Theme © iAndrew 2016 - Forum software by © MyBB