A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/django-wiki/django-wiki/issues/592 below:

Article rendering cache key using active language · Issue #592 · django-wiki/django-wiki · GitHub

Rendering may use translated texts. For instance, wiki/plugins/macros/templates/wiki/plugins/macros/article_list.html has this:

<li class="nav-header">{% trans "Article index" %} <i class="fa fa-list"></i></li>

The above will result in the string "Article index" being rendered and stored on the first active language that results in a call to Article.render, and thus all other languages will use this rendering regardless.

We should use the active language in the cache key to avoid this behavior.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4