Slow respond of "submit all and finish" questions

Slow respond of "submit all and finish" questions

pongsiri sup發表於
Number of replies: 1

I faced an issue about Quiz,

After user answer all questions and press a button "submit all and finish".

It took a long time around 20 seconds to a review page.

Can you suggest how to shorten the time?

Thank you in advance for your helping hands. 


Remark : 

Admin or manual account was not slow, but user from LDAP Server (sync plus) was slow.

Moodle 3.10.5 build21210712

php7.2.0

DB11.0

附件 Capture.PNG
評比平均分數: -
In reply to pongsiri sup

Re: Slow respond of "submit all and finish" questions

Tim Hunt發表於
Core developers的相片 Documentation writers的相片 Particularly helpful Moodlers的相片 Peer reviewers的相片 Plugin developers的相片
You can get an initial indication of where the time is being spent using the Developer tools in your web browser. The Network tab will show you what is loading, and how long each thing takes. (However, my guess would be that it is processattempt.php.)

Turning on Moodle's option to display performance info in the page footer (https://docs.moodle.org/311/en/Debugging#Performance_info) can also give some clues.

To drill down into even more detail, you really need a PHP profiling tool (e.g. Tideways - https://docs.moodle.org/dev/Profiling_PHP).