diff --git a/dev/concepts/advanced/component_caching/index.html b/dev/concepts/advanced/component_caching/index.html index 3bb41af2..3c72b1db 100644 --- a/dev/concepts/advanced/component_caching/index.html +++ b/dev/concepts/advanced/component_caching/index.html @@ -40,7 +40,7 @@ )
Warning
Passing slots as functions to cached components with include_slots=True
will raise an error.
Warning
Slot caching DOES NOT account for context variables within the {% fill %}
tag.
For example, the following two cases will be treated as the same entry:
{% with my_var="foo" %}
{% component "mycomponent" name="foo" %}
@@ -65,4 +65,4 @@
def get_template_data(self, args, kwargs, slots, context):
return {"name": kwargs["name"]}
-
In this example, the component's rendered output is cached for 5 minutes using the my_cache
backend.