Answer Posted / Mitesh Shandilaya
Yes, you can cache specific parts of a page in CodeIgniter using caching filters. You would define the filter in your controller and apply it to a method that generates the content to be cached.nn```phpn$this->output->set_header('Cache-Control: max-age=3600'); // Cache for 1 hourn$data = $this->my_method(); // Generate contentn$this->load->view('my_view', $data); // Render the view with the generated contentn```
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers