Django Book 翻译
菜单>:
TOC
返回
原文:
Django comes with a robust cache system that lets you save dynamic pages so they dont have to be calculated for each request. For convenience, Django offers different levels of cache granularity. You can cache the response of specific views, you can cache only the pieces that are difficult to produce, or you can cache your entire site.
翻译:
为此,Django提供了一个稳定的缓存系统让你缓存动态页面的结果,这样在接下来有相同的请求就可以直接使用缓存中的数据,避免不必要的重复计算。另外Django还提供了不同粒度数据的缓存,例如:你可以缓存整个页面,也可以缓存某个部分,甚至缓存整个网站。
备注:
译者: