hakeryk2 Posted October 18, 2017 Share Posted October 18, 2017 (edited) Hi community, I am having a little bit of problem, because I found out that productcommentslist is rendering this module is taking over 1 000 ms everytime when page load. I am having lastest version of this module. hookdisplayProductListReviews ~1500ms. It is kinda weird because I didn't see any long queries related to this module. Does anyone have this issue too? I checked this using setting define('_PS_DEBUG_PROFILING_', false); to true in defines.inc.php Presta 1.6.1.4 Edited October 18, 2017 by hakeryk2 (see edit history) Link to comment Share on other sites More sharing options...
Scully Posted October 18, 2017 Share Posted October 18, 2017 We don't have it in use. But you could try to add some log statements to the module to figure out where the delay comes from. There is a build in logger called this way: PrestaShopLogger::addLog("MyModule: Debug 1 a time " . time() , 1, null); Add some of these statments within the modules code and see where most of the processing time is consumed. Link to comment Share on other sites More sharing options...
hakeryk2 Posted October 18, 2017 Author Share Posted October 18, 2017 Oh I didn't know about this feature, I will test it but is it similar to something like this $start_time = microtime(TRUE); // do all my logic etc... $end_time = microtime(TRUE); echo 'Script rendered in '.$end_time - $start_time; but easier to debug? : ) Link to comment Share on other sites More sharing options...
Scully Posted October 20, 2017 Share Posted October 20, 2017 It's about the same. My version logs to the database wherease yours writes to HTML standard output which can cause conflicts with page rendering. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now