How do you cache image/s with Codeigniter? The images are not being stored in my database.
Thanks!
put this in your controller if you're talking about images being stored in your database:
$this->output->cache(10);
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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.