Django

Code

Changeset 2331

Show
Ignore:
Timestamp:
02/18/06 10:22:31 (3 years ago)
Author:
adrian
Message:

Made two small clarifications to docs/cache.txt. Thanks, Paul B.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/cache.txt

    r1898 r2331  
    66 
    77Django's cache framework gives you three methods of caching dynamic pages in 
    8 memory or in a database. You can cache the output of entire pages, you can 
     8memory or in a database. You can cache the output of specific views, you can 
    99cache only the pieces that are difficult to produce, or you can cache your 
    1010entire site. 
     
    123123.. _`middleware documentation`: http://www.djangoproject.com/documentation/middleware/ 
    124124 
    125 The per-page cache 
     125The per-view cache 
    126126================== 
    127127 
     
    153153Sometimes, however, caching an entire rendered page doesn't gain you very much. 
    154154For example, you may find it's only necessary to cache the result of an 
    155 intensive database. In cases like this, you can use the low-level cache API to 
    156 store objects in the cache with any level of granularity you like. 
     155intensive database query. In cases like this, you can use the low-level cache 
     156API to store objects in the cache with any level of granularity you like. 
    157157 
    158158The cache API is simple::