summaryrefslogtreecommitdiff
path: root/addons/web/models
diff options
context:
space:
mode:
authorMartin Geubelle <mge@odoo.com>2019-04-19 12:56:40 +0000
committerVincent Schippefilt <vsc@odoo.com>2019-05-22 07:52:07 +0000
commitc54caca54df90da5ef6917b4d53c1e016064a820 (patch)
treee67e772935e1b751bb049dd6ca6a597e59e282e3 /addons/web/models
parentb11b6bc902daeb354a5afafd801a6835eff81982 (diff)
[IMP] website: Cache translations forever
Generate a unique URL for translations and cache them forever in the browser. This reduces the number of requests, in exchange for computing the hash of the translations when the session object is added to the page
Diffstat (limited to 'addons/web/models')
-rw-r--r--addons/web/models/ir_http.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/web/models/ir_http.py b/addons/web/models/ir_http.py
index 0253599d508..872c330ea64 100644
--- a/addons/web/models/ir_http.py
+++ b/addons/web/models/ir_http.py
@@ -27,8 +27,8 @@ class Http(models.AbstractModel):
user_context = request.session.get_context() if request.session.uid else {}
- mods = ','.join(module_boot())
- files = [f[0] for f in manifest_glob('qweb', addons=mods)]
+ mods = module_boot()
+ files = [f[0] for f in manifest_glob('qweb', addons=','.join(mods))]
_, qweb_checksum = concat_xml(files)
lang = user_context.get("lang")