PrestaShop/PrestaShop — pull request #964 by oleacorner (2013-11-12 09:35:40+00:00)
Title: [*] FO : Optimization of getDiscountsCustomer

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