diff --git a/dev/concepts/advanced/component_caching/index.html b/dev/concepts/advanced/component_caching/index.html index 0e0a0e16..94f9e1b4 100644 --- a/dev/concepts/advanced/component_caching/index.html +++ b/dev/concepts/advanced/component_caching/index.html @@ -29,6 +29,6 @@ ttl = 300 # Cache for 5 minutes cache_name = "my_cache" - def get_context_data(self, name, **kwargs): - return {"name": name} -
In this example, the component's rendered output is cached for 5 minutes using the my_cache
backend.