ee7928d4bc92b53e36d3fc559c5e4046ca970498
It was a bad idea to recompute_coupon_lines into the function 'sale_get_order'. This function is called several times on each pages. The purpose of this one is to return a browse record only and IF needed recompute more. But apply a method that take several secondes will dramastically reduce the ecommerce performance. Now, we call the method only when we change the cart and so potentially change the right to benefit of a coupon or not. And not at each call of the method 'sale_get_order'. In checkout, that reduce from 6 call on some page to one this costly method that take several seconds.
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%