Jump to content

[SOLVED] How to find the speed bottleneck on a site


ealio

Recommended Posts

After i change the _PS_DEBUG_PROFILING_ to true, i got the error below when i refresh the homepage.
<a href="

 Undefined index: order_process (D:\beacon\prestashop\cache\smarty\compile\d7\f7\4e\d7f74e244e3a16599c740124b29db52c1b86d1b2.file.blocktopmenu.tpl.php, line 39)

The document i followed:
Try to enable the profiling feature, it will highlight which part of the code is slowing down your server.

   1. Put your store in maintenance mode.
   2. In your PrestaShop v1.5.x store, edit the /config/defines.inc.php file.
   3. On line 44, replace define('_PS_DEBUG_PROFILING_', false); by define('_PS_DEBUG_PROFILING_', true);
   4. Go to your store homepage and reload the page.

You should now be able to see how much time is consuming each function and SQL query.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...