Skip to content
Snippets Groups Projects
Unverified Commit 7aaf4c7d authored by Fredrik Jonsson's avatar Fredrik Jonsson Committed by GitHub
Browse files

Merge pull request #487 from OpenTechFund/bugfix/vary-primary-nav-cache-by-site

Cache the primary nav per site
parents 9c698a26 ab1ffa16
No related branches found
No related tags found
No related merge requests found
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
</div> </div>
<section class="header__menus header__menus--desktop"> <section class="header__menus header__menus--desktop">
{% cache 3600 navigation__primary %} {% cache 3600 navigation__primary request.site %}
{% primarynav %} {% primarynav %}
{% endcache %} {% endcache %}
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
</button> </button>
</div> </div>
</div> </div>
{% cache 3600 navigation__primary %} {% cache 3600 navigation__primary request.site %}
{% primarynav %} {% primarynav %}
{% endcache %} {% endcache %}
</section> </section>
......
...@@ -92,7 +92,7 @@ ...@@ -92,7 +92,7 @@
</div> </div>
<section class="header__menus header__menus--desktop"> <section class="header__menus header__menus--desktop">
{% cache 3600 navigation__primary %} {% cache 3600 navigation__primary request.site %}
{% primarynav %} {% primarynav %}
{% endcache %} {% endcache %}
...@@ -116,7 +116,7 @@ ...@@ -116,7 +116,7 @@
</button> </button>
</div> </div>
</div> </div>
{% cache 3600 navigation__primary %} {% cache 3600 navigation__primary request.site %}
{% primarynav %} {% primarynav %}
{% endcache %} {% endcache %}
</section> </section>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment