Django

Code

Changeset 6633

Show
Ignore:
Timestamp:
10/30/07 20:46:32 (1 year ago)
Author:
gwilson
Message:

Fixed #5842 -- Marked cache template tag as "New in development version", thanks SmileyChris.

Files:

Legend:

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

    r6588 r6633  
    292292========================= 
    293293 
     294**New in development version**. 
     295 
    294296If you're after even more control, you can also cache template fragments using 
    295 the ``cache`` template tag. To give your template access to this tag, put ``{% 
    296 load cache %}`` near the top of your template. 
     297the ``cache`` template tag. To give your template access to this tag, put 
     298``{% load cache %}`` near the top of your template. 
    297299 
    298300The ``{% cache %}`` template tag caches the contents of the block for a given 
    299 amount of time. It takes at least two arguments: the cache timeout, in 
    300 seconds, and the name to give the cache fragment. For example:: 
     301amount of time. It takes at least two arguments: the cache timeout, in seconds, 
     302and the name to give the cache fragment. For example:: 
    301303 
    302304    {% load cache %}