I have a list of orders from Commerce 1 (Craft 2) in the frontend.
I want to invalidate the cache when a new order is placed but it doesn't work:
{% set latestOrder = craft.commerce.orders.first() %}
{% cache until latestOrder.dateOrdered %}
Last Updated: {{ orders.dateOrdered.first() | date('D d.m.Y - H:i') }}
{# stuff #}
{% endcache %}
The Last Updated
tag shows always the latest browser reload. What's the error here?