From 81245be04552f45e78067dbd957d1e033b3e7955 Mon Sep 17 00:00:00 2001 From: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> Date: Fri, 29 Jan 2021 15:23:53 +0100 Subject: [PATCH 1/2] =?UTF-8?q?ez=5Fhttp=5Ftag=5Flocation=20=E2=86=92=20ez?= =?UTF-8?q?=5Fhttp=5Fcache=5Ftag=5Flocation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/guide/http_cache.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/guide/http_cache.md b/docs/guide/http_cache.md index ff9c135258..fa31796a09 100644 --- a/docs/guide/http_cache.md +++ b/docs/guide/http_cache.md @@ -812,12 +812,12 @@ $response->headers->set('X-Location-Id', '123,212,42'); ### Response tagging in templates -1\. `ez_http_tag_location()` +1\. `ez_http_cache_tag_location()` For full content tagging when inline rendering, use the following: ``` html+twig -{{ ez_http_tag_location(location) }} +{{ ez_http_cache_tag_location(location) }} ``` 2\. `ez_http_tag_relation_ids()` or `ez_http_tag_relation_location_ids()` From 4f9b4104442523425640b11a78acf602f611ce6d Mon Sep 17 00:00:00 2001 From: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> Date: Tue, 9 Feb 2021 09:31:12 +0100 Subject: [PATCH 2/2] ez_http_cache_tag_ prefix on every Twig function --- docs/guide/http_cache.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/guide/http_cache.md b/docs/guide/http_cache.md index fa31796a09..6c0659ac70 100644 --- a/docs/guide/http_cache.md +++ b/docs/guide/http_cache.md @@ -820,15 +820,15 @@ For full content tagging when inline rendering, use the following: {{ ez_http_cache_tag_location(location) }} ``` -2\. `ez_http_tag_relation_ids()` or `ez_http_tag_relation_location_ids()` +2\. `ez_http_cache_tag_relation_ids()` or `ez_http_cache_tag_relation_location_ids()` When you want to reduce the amount of tags, or the inline content is rendered using ESI, a minimum set of tags can be set: ``` html+twig -{{ ez_http_tag_relation_ids(content.id) }} +{{ ez_http_cache_tag_relation_ids(content.id) }} {# Or using array for several values #} -{{ ez_http_tag_relation_ids([field1.value.destinationContentId, field2.value.destinationContentId]) }} +{{ ez_http_cache_tag_relation_ids([field1.value.destinationContentId, field2.value.destinationContentId]) }} ``` 3\. `{{ fos_httpcache_tag(['r33', 'r44']) }}`