PrestaShop/PrestaShop — pull request #960 by oleacorner (2013-11-11 12:23:39+00:00)
Title: [*] MO : Optimization of getDiscountsCustomer

When displaying the FO cart summary, Order::getDiscountsCustomer() and
Cart::getDiscountsCustomer() are called several time, one time per
id_cart_rule retrieved in the CartRule::getCustomerCartRules().
Theses 2 optimizations manage an internal cache to have only one request
per cart / per customer.