1
0
mirror of https://github.com/django/django.git synced 2024-12-24 10:05:46 +00:00

Fixed #18110 -- Improve template cache tag documentation

This commit is contained in:
Julian Bez 2012-06-14 17:42:55 +03:00
parent 4d46106f8c
commit 3c0877938f

View File

@ -595,7 +595,8 @@ the ``cache`` template tag. To give your template access to this tag, put
The ``{% cache %}`` template tag caches the contents of the block for a given
amount of time. It takes at least two arguments: the cache timeout, in seconds,
and the name to give the cache fragment. For example:
and the name to give the cache fragment. The name will be taken as is, do not
use a variable. For example:
.. code-block:: html+django