summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields
diff options
context:
space:
mode:
authorJeremy Kersten <jke@odoo.com>2020-03-13 15:16:44 +0000
committerRomain Derie <rde@odoo.com>2020-03-19 15:37:47 +0000
commit9430dd12878fd702baf2415700842e6db5f1a06c (patch)
treea5ba0358f60c6f2fefe3fa592907577e2f0bbbc9 /addons/web/static/src/js/fields
parent4c403934903b68afb08e87ac571b6777042e5a7f (diff)
[FIX] website: perf - use lang cache in url for.
Before this commit, url_lang (= url_for) will make query to find the lang_code but we alrady have this info in ormcache with get_available method. So instead to rebrowse (search query) the lang, we use a new method that will try to find it in cache if possible before to make the query. The gain on each page is n-1 (where n is # lang installed) Because the switcher of languages do an url_for for each lang available. Related to #47257 task-2211013 X-original-commit: 2cecbe356ce283e15fb0bbd0a6e9aa4735af520e
Diffstat (limited to 'addons/web/static/src/js/fields')
0 files changed, 0 insertions, 0 deletions