i'm wondering if it's possible to cache a view which is loaded inside another view.
I do:
view.php:
<div>
<?php echo $this->load->view('modules/new_view'); ?>
</div>
so view.php requires a new view inside himself, can i cache the views/modules/new_view.php
content?
Codeigniter has Web Page Caching
To do it you would use the code below where
n
is the number of minutes you wish the page to remain cached between refreshes. You can place it anywhere within a function.Update
To cache just a portion of the page, or just a single view, you can use CodeIgniter-Cache.
Another alternative
MP Cache: Simple flexible Caching of parts of code