简体   繁体   中英

Codeigniter caching web-page vs database. What is the Deference?

Now I just starting using codeigniter as framework. I have a lot of data will be saved on database. I read more on caching system of codeigniter. And I found that there is two types of caching on it DATABASE CACHING & WEB PAGE CACHING. My Question here is, When must I use database caching ? And when must I use web-page caching?

Let me put a quote from the docs ,

Unfortunately there is no single answer to the question of whether you should cache your database. It really depends on your situation.

That also aligns with my suggestion to you. Look at both, Database Caching and Web Page Caching as two mechanisms on your disposal when there's a specific performance problem to solve . Then consider them both, how they fit in and base your pick on that.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM