Skip to content

Commit 8784835

Browse files
committed
P7A-113: update with shortended version of HTTP cache tags
1 parent 9911890 commit 8784835

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

bundle/Resources/views/default/field_type/ezrichtext/embed/content.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
{% endif %}
1616

1717
<div {% if embedParams.anchor is defined %}id="{{ embedParams.anchor }}"{% endif %} class="{% if embedParams.align is defined %}align-{{ embedParams.align }}{% endif %}{% if embedParams.class is defined %} {{ embedParams.class }}{% endif %}"{{ data_attributes_str|raw }}>
18-
{{ fos_httpcache_tag('relation-' ~ embedParams.id) }}
18+
{{ fos_httpcache_tag('r' ~ embedParams.id) }}
1919
{% if ibexa.configResolver.getParameter('ng_site_api.richtext_embed_without_subrequest') == true %}
2020
{{ ng_view_content_embedded(embedParams.viewType, params|merge( { "contentId": embedParams.id } )) }}
2121
{% else %}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<div class="{% if embedParams.align is defined %}align-{{ embedParams.align }}{% endif %}{% if embedParams.class is defined %} {{ embedParams.class }}{% endif %}">
2-
{{ fos_httpcache_tag('relation-' ~ embedParams.id) }}
2+
{{ fos_httpcache_tag('r' ~ embedParams.id) }}
33
Content #{{ embedParams.id }}: You do not have permission to view this Content
44
</div>

bundle/Resources/views/default/field_type/ezrichtext/embed/content_inline.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
{% set params = params|merge( { "class": embedParams.class } ) %}
1414
{% endif %}
1515

16-
{{ fos_httpcache_tag('relation-' ~ embedParams.id) }}
16+
{{ fos_httpcache_tag('r' ~ embedParams.id) }}
1717
{% if ibexa.configResolver.getParameter('ng_site_api.richtext_embed_without_subrequest') == true %}
1818
{{ ng_view_content_embedded(embedParams.viewType, params|merge( { "contentId": embedParams.id } )) }}
1919
{% else %}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
{{ fos_httpcache_tag('relation-' ~ embedParams.id) }}
1+
{{ fos_httpcache_tag('r' ~ embedParams.id) }}
22
[[ Content #{{ embedParams.id }}: You do not have permission to view this Content ]]

bundle/Resources/views/default/field_type/ezrichtext/embed/location.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
{% endif %}
1515

1616
<div {% if embedParams.anchor is defined %}id="{{ embedParams.anchor }}"{% endif %} class="{% if embedParams.align is defined %}align-{{ embedParams.align }}{% endif %}{% if embedParams.class is defined %} {{ embedParams.class }}{% endif %}">
17-
{{ fos_httpcache_tag('relation-location-' ~ embedParams.id) }}
17+
{{ fos_httpcache_tag('rl' ~ embedParams.id) }}
1818
{% if ibexa.configResolver.getParameter('ng_site_api.richtext_embed_without_subrequest') == true %}
1919
{{ ng_view_content_embedded(embedParams.viewType, params|merge( { "locationId": embedParams.id } )) }}
2020
{% else %}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<div class="{% if embedParams.align is defined %}align-{{ embedParams.align }}{% endif %}{% if embedParams.class is defined %} {{ embedParams.class }}{% endif %}">
2-
{{ fos_httpcache_tag('relation-location-' ~ embedParams.id) }}
2+
{{ fos_httpcache_tag('rl' ~ embedParams.id) }}
33
Location #{{ embedParams.id }}: You do not have permission to view this Location
44
</div>

bundle/Resources/views/default/field_type/ezrichtext/embed/location_inline.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
{% set params = params|merge( { "class": embedParams.class } ) %}
1414
{% endif %}
1515

16-
{{ fos_httpcache_tag('relation-location-' ~ embedParams.id) }}
16+
{{ fos_httpcache_tag('rl' ~ embedParams.id) }}
1717
{% if ibexa.configResolver.getParameter('ng_site_api.richtext_embed_without_subrequest') == true %}
1818
{{ ng_view_content_embedded(embedParams.viewType, params|merge( { "locationId": embedParams.id } )) }}
1919
{% else %}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
{{ fos_httpcache_tag('relation-location-' ~ embedParams.id) }}
1+
{{ fos_httpcache_tag('rl' ~ embedParams.id) }}
22
[[ Location #{{ embedParams.id }}: You do not have permission to view this Location ]]

0 commit comments

Comments
 (0)