diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2010-06-23 21:05:10 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2010-06-23 21:05:10 -0400 |
commit | 90bbd71038bdb6db2cb9c3d277f1ac8ebdf15cdc (patch) | |
tree | f54f433b3048861284998e4ffc54153d6c404a8b | |
parent | 4261942ef2123940a3741bc7b29863fa1518c359 (diff) | |
download | askbot-90bbd71038bdb6db2cb9c3d277f1ac8ebdf15cdc.tar.gz askbot-90bbd71038bdb6db2cb9c3d277f1ac8ebdf15cdc.tar.bz2 askbot-90bbd71038bdb6db2cb9c3d277f1ac8ebdf15cdc.zip |
added LANGUAGE_CODE to caching keys in the template
-rw-r--r-- | askbot/skins/default/templates/questions.html | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/askbot/skins/default/templates/questions.html b/askbot/skins/default/templates/questions.html index 6803cb60..a3c1ca1c 100644 --- a/askbot/skins/default/templates/questions.html +++ b/askbot/skins/default/templates/questions.html @@ -26,7 +26,8 @@ <script type='text/javascript' src='{% media "/media/js/com.cnprog.tag_selector.js" %}'></script> {% endblock %} {% block content %} -{% cache 600 "scope_sort_tabs" search_tags scope sort query context.page context.page_size %} +{% get_current_language as LANGUAGE_CODE %} +{% cache 600 "scope_sort_tabs" search_tags scope sort query context.page context.page_size LANGUAGE_CODE %} <div class="tabBar"> <div class="tabsC"> <span class="label">{% trans "In:" %}</span> @@ -172,7 +173,8 @@ </div> {% endif %} <div id="listA"> -{% cache 600 questions search_tags scope sort query context.page context.page_size %} +{% get_current_language as LANGUAGE_CODE %} +{% cache 600 questions search_tags scope sort query context.page context.page_size LANGUAGE_CODE %} {% include "question_list.html" %} {% endcache %} {% comment %}todo: fix css here{% endcomment %} @@ -230,7 +232,8 @@ {% block sidebar %} {% if contributors %} - {% cache 600 contributors search_tags scope sort query context.page context.page_size %} + {% get_current_language as LANGUAGE_CODE %} + {% cache 600 contributors search_tags scope sort query context.page context.page_size LANGUAGE_CODE %} <div class="boxC"> <h3 class="subtitle">{% trans "Contributors" %}</h3> {% for person in contributors %} @@ -245,7 +248,8 @@ {% endif %} {% if tags %} - {% cache 600 tags search_tags scope sort query context.page context.page_size %} + {% get_current_language as LANGUAGE_CODE %} + {% cache 600 tags search_tags scope sort query context.page context.page_size LANGUAGE_CODE %} <div class="boxC"> <h3 class="subtitle">{% trans "Related tags" %}</h3> <div class="tags"> |