summaryrefslogtreecommitdiff
path: root/doc/reference/javascript_reference.rst
diff options
context:
space:
mode:
authorJeremy Kersten <jke@odoo.com>2020-03-26 18:06:51 +0000
committerRomain Derie <rde@odoo.com>2020-03-26 18:12:50 +0000
commit6d6b505598413b0d766a8394c7131351ade64266 (patch)
tree4279471259af3b3e0ffda09539675c336eb586aa /doc/reference/javascript_reference.rst
parentb03a4180be6138ffd4fc5ccfcbe6a44516bd83d0 (diff)
[IMP] website: perf - add cache for website frequent fields
The dispatching layer of Odoo (common to any call) can avoid a query on website if those 3 values are cached. Note that for complex business flows, there won't be any gain since website infos will have to be fetched at some point. About user_id: In most cases, for a website page you will need to browse the website btw so we don't remove this request previously. But in case of a simple image, the controller /web/content need the public user just to set the request.uid in auth_public but no other info from website. With this commit, we don't do the 'select * from website where id in()' request on each controller declared in auth='public' but use the user_id from the cache. (Invalidated by the write on website_id) task-2211013 Co-authored-by: Jérémy Kersten <jke@odoo.com> Co-authored-by: Romain Derie <rde@odoo.com>
Diffstat (limited to 'doc/reference/javascript_reference.rst')
0 files changed, 0 insertions, 0 deletions