# 1 forum for multiple languages or 1 forum per language?

**URL:** <https://meta.discourse.org/t/1-forum-for-multiple-languages-or-1-forum-per-language/52915>\
**Category:** Community Building\
**Tags:** multi-lingual\
**Created:** [November 15, 2016, 10:26am UTC](https://meta.discourse.org/t/1-forum-for-multiple-languages-or-1-forum-per-language/52915 "2016-11-15T10:26:38Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [December 18, 2016, 9:31pm UTC](https://meta.discourse.org/t/1-forum-for-multiple-languages-or-1-forum-per-language/52915/11 "2016-12-18T21:31:54Z")

</div>

Yes, the localized-categories plugin has the same issue with anonymous caching.

It’s possible to extract the desired locale from accept-language header before adding it to the cache\_key. That way the cache isn’t be broken for every possible accept-language header. It’s also unlikely that any site would need more than 2 or 3 languages. If a forum’s supported locales were set as a global setting, those suupported locales could be compared agaist the locale extracted from the accept-language header. The cache\_key would only need to be updated if the locale extracted from the accept-language header matched one of the site’s supported locales.

This might still be too inefficient, but not as bad as busting the cache for every possible locale.

---

_[View the full topic](https://meta.discourse.org/t/1-forum-for-multiple-languages-or-1-forum-per-language/52915)._
