![]() |
cannot able to clear cache files - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: General (https://forum.codeigniter.com/forumdisplay.php?fid=1) +--- Forum: Lounge (https://forum.codeigniter.com/forumdisplay.php?fid=3) +--- Thread: cannot able to clear cache files (/showthread.php?tid=73194) |
cannot able to clear cache files - kvanaraj - 03-29-2019 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 RE: cannot able to clear cache files - InsiteFX - 03-29-2019 Maybe if you read the User's Guide you would not need to ask this question! PHP Code: $this->cache->delete('cache_item_id'); RE: cannot able to clear cache files - Afflospark - 04-18-2019 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 |