You are viewing an older version of the Consume documentation (1.x).
View the latest version (2.x) →
Feature Tour
Cache
By default, data fetched from providers is cached for performance for 1 hour. You can control this via the enableCache and cacheDuration plugin settings.
You may wish to disable Consume's automatic caching to use your own {% cache %} Twig tag to control caching at the template level.
{% cache using key 'my-data' for 1 day %}
{% set data = craft.consume.fetchData('myClient') %}
{% for item in data %}
{# ... #}
{% endfor %}
{% endcache %}
Last updated: May 4, 2026, 8:57:31 AM