user634850
user634850

Reputation: 515

Image caching with Codeigniter

How do you cache image/s with Codeigniter? The images are not being stored in my database.

Thanks!

Upvotes: 3

Views: 8058

Answers (2)

Glad To Help
Glad To Help

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

jpea
jpea

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

Related Questions