Changeset 6633
- Timestamp:
- 10/30/07 20:46:32 (1 year ago)
- Files:
-
- django/trunk/docs/cache.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/docs/cache.txt
r6588 r6633 292 292 ========================= 293 293 294 **New in development version**. 295 294 296 If 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.297 the ``cache`` template tag. To give your template access to this tag, put 298 ``{% load cache %}`` near the top of your template. 297 299 298 300 The ``{% 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::301 amount of time. It takes at least two arguments: the cache timeout, in seconds, 302 and the name to give the cache fragment. For example:: 301 303 302 304 {% load cache %}
