KQMATH / moodle-mod_capquiz

:mushroom: Computer adaptive practice activity module for Moodle
https://moodle.org/plugins/mod_capquiz
GNU General Public License v3.0
4 stars 5 forks source link

Constructor called twice #191

Closed hgeorgsch closed 1 year ago

hgeorgsch commented 3 years ago

Execution of view.php leads to the capquiz constructor being called twice, once directly and once indirectly. This is a performance issue when a lot of attempts have been made on the quiz. Cf. the callgraph plot from the profiler given on the wiki.

hgeorgsch commented 3 years ago

Resolving this bug will be a partial fix of #167

hgeorgsch commented 3 years ago

See also https://github.com/KQMATH/moodle-block_quizqtracker/issues/2 The second call stems from the qtracker block

hgeorgsch commented 1 year ago

This should have been resolved elsewhere. Closing.