Closed pippinsplugins closed 8 years ago
The EDD customers DB class provides a count() method that will make your get_customers() and compare_customers() methods much more efficient.
count()
get_customers()
compare_customers()
https://github.com/easydigitaldownloads/easy-digital-downloads/blob/master/includes/class-edd-db-customers.php#L523
Thanks for the tip, updated in https://github.com/scottopolis/edd-metrics/commit/dc20283830e7be68b0d28a0dfca9e96254386350
The EDD customers DB class provides a
count()
method that will make yourget_customers()
andcompare_customers()
methods much more efficient.https://github.com/easydigitaldownloads/easy-digital-downloads/blob/master/includes/class-edd-db-customers.php#L523