CodeIgniter Forums
Need some advices with cache - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Need some advices with cache (/showthread.php?tid=15386)



Need some advices with cache - El Forum - 02-02-2009

[eluser]demogar[/eluser]
Ok... first of all sorry my English. I'm not an English speaker but I'll try to do my best.

I don't get how to use the CodeIgniter cache systems (Database Cache and Output Cache) in an effective mode.

I have a website with a bunch of dynamic data and I want to use a cache system in the page but I've been having some troubles in my website trying to get it working. My first need is to use a cache system for performance, but:
- Database Cache doesn't boost my performance (well.. the performance is worse than before).
- Output cache is really GREAT. The problem with this is if I'm caching a page with dynamic data for 10 minutes, for example, and if I write a new comment on that page it won't show me the new comment.

I would like to know what are your advices for this? What would you do? How would I use both cache systems and when?

Thank you in advance!