Tips on speeding up load time of WP e-commerce plugin in Admin Panel
I have to say WP e-commerce solves a big problem for so many of us who want to set up an online shopping site. It’s so lovely to have it around. But I have to admit that accessing e-commerce menu in administration panel is a headache, especially when web server is on a slow network. Therefore, I try figuring out how to speed it up. Here is what I noticed:
- The plugin tries to load feeds from http://www.instinct.co.nz/feed by making the following call (display_log.php):
$rss = fetch_rss(‘http://www.instinct.co.nz/feed/’);
You can just comment out this line if you want. This works for me in my development environment.
- Line 45 at display_log.php contains an Order by which is unnecessary when getting a total, this line can be commented out:
$sql = “SELECT COUNT(*) AS `count` FROM `”.$wpdb->prefix.”purchase_logs` WHERE `date`!=” ORDER BY `date` DESC”;
- The other thing that I notice is WP e-commerce is also loading the dashboard page which I am not sure what’s rational behind, so if you really want to get rid of that then you will have to change the code there
- There may be other places you can tune so that it performs better, please let me know if you notice any so that I can make this tip better and thorough
Finally, please note where you comment out so that you can uncomment them out when you really need them.
By the way, if you find this tip is valuable please let a comment