Loading docs/topics/cache.txt +2 −1 Original line number Diff line number Diff line Loading @@ -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 Loading Loading
docs/topics/cache.txt +2 −1 Original line number Diff line number Diff line Loading @@ -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 Loading