Improve performance of edd_purchase_total_of_user(). #1177
Improve performance of edd_count_purchases_of_customer(). #1177