Caching(The Definitive Guild to Django)
2010-04-07 17:08
399 查看
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.
相关文章推荐
- Models(The Definitive Guild to Django)
- The Django Admin Site(The Definitive Guild to Django)
- Advanced Views and URLconfs(The Definitive Guild to Django)
- Getting Started(The Definitive Guild to Django)
- Advanced Templates(The Definitive Guild to Django)
- Introduction to Django(The Definitive Guild to Django)
- Sessions, Users, and Registration(The Definitive Guild to Django)
- Forms(The Definitive Guild to Django)
- Deploying Django(The Definitive Guild to Django)
- Templates(The Definitive Guild to Django)
- Generic Views(The Definitive Guild to Django)
- Generating Non-HTML Content(The Definitive Guild to Django)
- Views and URLconfs(The Definitive Guild to Django)
- Advanced Models(The Definitive Guild to Django)
- The Definitive Guide to Django: Web Development Done Right
- The Definitive Guide To Django 2 学习笔记(三) URLconfs 和松耦合
- The Definitive Guide To Django 2 学习笔记(六) 第四章 模板 (二)使用模板系统
- The Definitive Guide To Django 2 学习笔记(一) Views and UrL confsRL
- The Definitive Guide To Django 2 学习笔记(五) 第四章 模板 (一)基本模板系统
- The Definitive Guide To Django 2 学习笔记(四) 动态URLs