view cache option doesn't work - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: view cache option doesn't work (/showthread.php?tid=78672) |
view cache option doesn't work - viracoders - 02-23-2021 I have this controller and need to cache view using options method: PHP Code: public function index() But in action I check cache folder but I cant see any cache file. how do can I cache view? Note: I know, I can work with $this->cachePage($n); method, But in action I need to work with view options method. RE: view cache option doesn't work - paulbalandan - 02-24-2021 try PHP Code: return view('index', $data, ['cache' => 120]); RE: view cache option doesn't work - viracoders - 02-26-2021 (02-24-2021, 10:29 AM)paulbalandan Wrote: try It's also doesn't work!! You check it? |