Reputation: 515
How do you cache image/s with Codeigniter? The images are not being stored in my database.
Thanks!
Upvotes: 3
Views: 8058
Reputation: 5387
You can cache the images with mod_expires and Apache. It does not depend on CodeIgniter, it is rather a general solution.
I recommend that you check this link: Website Image Caching with Apache
Upvotes: 0
Reputation: 3079
put this in your controller if you're talking about images being stored in your database:
$this->output->cache(10);
http://codeigniter.com/user_guide/general/caching.html
Upvotes: 6