Codeigniter 缓存网页与数据库。什么是尊重?
Codeigniter caching web-page vs database. What is the Deference?
现在我刚开始使用 codeigniter 作为框架。
我有很多数据将保存在数据库中。
我阅读了有关 codeigniter 缓存系统的更多信息。而且我发现上面有两种缓存DATABASE CACHING & WEB PAGE CACHING。
我的问题是,什么时候必须使用数据库缓存?什么时候必须使用网页缓存?
让我引用 the docs,
Unfortunately there is no single answer to the question of whether you should cache your database. It really depends on your situation.
这也符合我给你的建议。当有 特定的性能问题需要解决 时,将数据库缓存和网页缓存视为您可以使用的两种机制。然后考虑它们,它们如何适应并以此为基础进行选择。
现在我刚开始使用 codeigniter 作为框架。 我有很多数据将保存在数据库中。 我阅读了有关 codeigniter 缓存系统的更多信息。而且我发现上面有两种缓存DATABASE CACHING & WEB PAGE CACHING。 我的问题是,什么时候必须使用数据库缓存?什么时候必须使用网页缓存?
让我引用 the docs,
Unfortunately there is no single answer to the question of whether you should cache your database. It really depends on your situation.
这也符合我给你的建议。当有 特定的性能问题需要解决 时,将数据库缓存和网页缓存视为您可以使用的两种机制。然后考虑它们,它们如何适应并以此为基础进行选择。