ezakimak Posted May 29, 2012 Share Posted May 29, 2012 (edited) Hi, Our BO dashboard(and only the dash board) takes between 15~30s to load, the rest of the BO tabs loads in 1s(average ), is there any way to disable all those stats info in the main home page in BO ? I am looking forward to hearing from you Regards Hugo Edited May 29, 2012 by ezakimak (see edit history) Link to comment Share on other sites More sharing options...
codegrunt Posted May 29, 2012 Share Posted May 29, 2012 If the only issue is on the default page of the BO you could try commenting out sections of the display() method in {admin_dir}tabs/AdminHome.php to see which are causing delays. Most (all?) of what is in there appears to be informational only so should not cause problems if you comment them out. There is also a hook for "backOfficeHome" so it could also be an external module that is to blame in thise case. Another possible culprit could be the remote Prestashop update check if for some reason that is stalling. Worst case just add a "return;" statement at the top of the method to bypass everything. Make sure you do a back up of the file first of course. Cheers Link to comment Share on other sites More sharing options...
ezakimak Posted May 29, 2012 Author Share Posted May 29, 2012 (edited) Hi, Thanks for this info, checked all modules called with backOfficeHome hook, I have just one: Condensed stats for the Back Office homepage v1.0, uninstalling it the load time went to 6-10s. I'll have a further look at those statistic data(not bound to any modules) showing in the BO home page: -Monthly Statistics -Customers service -Statistics / Sales of the week Thanks for your help Hugo If the only issue is on the default page of the BO you could try commenting out sections of the display() method in {admin_dir}tabs/AdminHome.php to see which are causing delays. Most (all?) of what is in there appears to be informational only so should not cause problems if you comment them out. There is also a hook for "backOfficeHome" so it could also be an external module that is to blame in thise case. Another possible culprit could be the remote Prestashop update check if for some reason that is stalling. Worst case just add a "return;" statement at the top of the method to bypass everything. Make sure you do a back up of the file first of course. Cheers Edited May 29, 2012 by ezakimak (see edit history) Link to comment Share on other sites More sharing options...
ezakimak Posted May 29, 2012 Author Share Posted May 29, 2012 (edited) Solved, In AdminHome.php, in the "column_right" part, references/pushes data from www.prestashop.com, eliminating those references, the load time went from 25s(average) to 1.5s(average) Thanks for the tips Hugo If the only issue is on the default page of the BO you could try commenting out sections of the display() method in {admin_dir}tabs/AdminHome.php to see which are causing delays. Most (all?) of what is in there appears to be informational only so should not cause problems if you comment them out. There is also a hook for "backOfficeHome" so it could also be an external module that is to blame in thise case. Another possible culprit could be the remote Prestashop update check if for some reason that is stalling. Worst case just add a "return;" statement at the top of the method to bypass everything. Make sure you do a back up of the file first of course. Cheers Edited May 30, 2012 by ezakimak (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts