aboutsummaryrefslogtreecommitdiffstats
path: root/doc/build/caching.rst
diff options
context:
space:
mode:
Diffstat (limited to 'doc/build/caching.rst')
-rw-r--r--doc/build/caching.rst10
1 files changed, 9 insertions, 1 deletions
diff --git a/doc/build/caching.rst b/doc/build/caching.rst
index 6cf7197..19656c8 100644
--- a/doc/build/caching.rst
+++ b/doc/build/caching.rst
@@ -5,7 +5,7 @@ Caching
========
Any template or component can be cached using the ``cache``
-argument to the ``<%page>`` or ``<%def>`` directives:
+argument to the ``<%page>``, ``<%def>`` or ``<%block>`` directives:
.. sourcecode:: mako
@@ -32,6 +32,14 @@ The caching flag and all its options can be used with the
other text
</%def>
+... and equivalently with the ``<%block>`` tag, anonymous or named:
+
+.. sourcecode:: mako
+
+ <%block cached="True" cache_timeout="30" cache_type="memory">
+ other text
+ </%block>
+
Cache arguments
================