Ray's playground

 

Caching(The Definitive Guild to Django)

  Django comes with a robust cache system that lets you save dynamic pages so they don’t have to be calculated for each request. For convenience, Django offers different levels of cache granularity: you can cache the output of specific views, you can cache only the pieces that are difficult to produce, or you can cache your entire site.
  Django also works well with “upstream” caches, such as Squid (http://www.squid-cache.org/) and browser-based caches. These are the types of caches that you don’t directly control but to which you can provide hints (via HTTP headers) about which parts of your site should be cached, and how.

posted on 2010-04-07 17:08  Ray Z  阅读(255)  评论(0编辑  收藏  举报

导航