From 29b6b851a64f1f19922c6d0eff01e5327822c21b Mon Sep 17 00:00:00 2001 From: Victor Feyens Date: Tue, 21 Nov 2023 11:49:44 +0100 Subject: [PATCH] [PERF] website_sale: cache attributes display After profiling and investigation of /shop route flamegraphs, we have noticed that the rendering of attributes filters is taking up to 70% of the loading time. Since attributes are a not so frequently modified and do not depend on any other contextual data, this part of the template can be easily cached to improve loading time. Part-of: odoo/odoo#142860 --- addons/website_sale/views/templates.xml | 113 +++++++++++++----------- 1 file changed, 63 insertions(+), 50 deletions(-) diff --git a/addons/website_sale/views/templates.xml b/addons/website_sale/views/templates.xml index 9e76f773723..67923a059ce 100644 --- a/addons/website_sale/views/templates.xml +++ b/addons/website_sale/views/templates.xml @@ -658,43 +658,50 @@ - - + + + -
-

- -

-
+
+

+ +

+
-
-
-
-
- -
-
+ @@ -887,34 +894,39 @@ -