diff options
| author | Jeremy Kersten <jke@odoo.com> | 2020-03-13 15:16:44 +0000 |
|---|---|---|
| committer | Romain Derie <rde@odoo.com> | 2020-03-19 15:37:47 +0000 |
| commit | 9430dd12878fd702baf2415700842e6db5f1a06c (patch) | |
| tree | a5ba0358f60c6f2fefe3fa592907577e2f0bbbc9 /addons/web/static/src/js/fields/basic_fields.js | |
| parent | 4c403934903b68afb08e87ac571b6777042e5a7f (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/basic_fields.js')
0 files changed, 0 insertions, 0 deletions
