Hi @razrgeezer
Thanks for your comments. I’m really interested in taking a look at the performance issue you had.
When you have a really really big sales log (say two years or more of transactions) then your dashboard page grinds to a halt. I’m not a database expert myself but I suspect there is a way to optimize this from happening.
Unfortunately I don’t have a site with a big sales log, so I’m wondering if you could run some debug for me to help pin down the issue?
Could you do the following:
First, put this in wp-config.php:
define('SAVEQUERIES', true);
Then, paste the following onto the end of wp-admin/index.php
<?php
if (current_user_can('administrator')){
global $wpdb;
echo "<pre>";
print_r($wpdb->queries);
echo "</pre>";
}
?>
Next time you view your wordpress dashboard it should spit out an array of the queries it ran, and how long they took at the bottom of the page. If you can send me this that’d be fantastic. NOTE: I wouldn’t recommend posting it here, but if you can drop me a line through my blog you can attach it there:
https://www.leewillis.co.uk/contact/
Once you’ve done that you can (& should!) back out the changes you made.
Nice work! Oh and in terms of a killer feature for the Dashboard please add “Most popular products sold”.
That’s be neat – I’ll look into it.
If this was advanced enough to show trends on a month by month basis that would be amazing.
That might be beyond me, but we’ll see ??
Thanks again.
Lee