Skip to content

Commit

Permalink
Removed cache on page types as cache is per block
Browse files Browse the repository at this point in the history
  • Loading branch information
bymayo authored Dec 10, 2018
1 parent 1f3e2c4 commit 9b418b4
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions templates/_page/types/page.twig
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,13 @@
{# ------- Template ------- #}

{% block content %}
{%- cache globally using key 'site-footer' -%}
{%- minify -%}
{#
{% for block in entry.matrix %}
{% include '_blocks/' ~ block.type %}
{% endfor %}
#}
{%- endminify -%}
{%- endcache -%}
{%- minify -%}
{#
{% for block in entry.matrix %}
{% include '_blocks/' ~ block.type %}
{% endfor %}
#}
{%- endminify -%}
{% endblock %}

{# ------- Critical ------- #}
Expand Down

0 comments on commit 9b418b4

Please sign in to comment.