# HG changeset patch # User neko259 # Date 2017-12-13 20:38:06 # Node ID b8cdd5b12b86df13e493b0f24a07b1a5decb438a # Parent 8dd7e526f64f1d6101ea493cc5002ef8aa8d5a8e Speed up tag local cache diff --git a/boards/models/tag.py b/boards/models/tag.py --- a/boards/models/tag.py +++ b/boards/models/tag.py @@ -133,7 +133,7 @@ class Tag(models.Model, Viewable): return self.required def _get_locale_cache_key(self): - return '{}_{}'.format(self.id, get_language()) + return [get_language()] @cached_result(key_method=_get_locale_cache_key) def get_localized_name(self):