From 686956bd5cb52c8c3b62db7fef3506a5ecaf48d0 Mon Sep 17 00:00:00 2001 From: Anthony Johnson Date: Wed, 29 Aug 2018 15:21:39 -0600 Subject: [PATCH 1/2] Respect user language when caching homepage Previously it was using the first language that hit the page to cache. --- readthedocs/templates/homepage.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/readthedocs/templates/homepage.html b/readthedocs/templates/homepage.html index 8fd9f851709..4f28cb834ae 100644 --- a/readthedocs/templates/homepage.html +++ b/readthedocs/templates/homepage.html @@ -117,7 +117,8 @@

Multiple versions

{% if featured_list %} - {% cache 600 homepage_featured_list %} + {% get_current_language as language %} + {% cache 600 homepage_featured_list language %}

{% trans "Featured Projects" %}

From 2197284426a851f7e39c45de9f9ebb6f2f6f4d6c Mon Sep 17 00:00:00 2001 From: Anthony Johnson Date: Wed, 29 Aug 2018 16:10:15 -0600 Subject: [PATCH 2/2] Stop it travis! --- common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common b/common index 5abc1d31f84..9d653630c72 160000 --- a/common +++ b/common @@ -1 +1 @@ -Subproject commit 5abc1d31f84c615dbfc060fd671efd85aade01f7 +Subproject commit 9d653630c7285f8f2ec2deb06cb473e4ad6e0700