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?
1条回答 默认 最新
douao2019 2016-11-19 10:13关注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.
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报