Please sign in to comment.
[IMP] website: cache the public_user_id on the website
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)
- Loading branch information
Showing with 10 additions and 5 deletions.