h5p / moodle-mod_hvp

H5P Plugin for Moodle
GNU General Public License v3.0
131 stars 168 forks source link

H5P activities slower after upgrading library version #513

Open maryannegrey opened 11 months ago

maryannegrey commented 11 months ago

We're running Moodle 4.1 in AWS and I'm encountering problems with slow load time after editing any H5P activity.

Here's an example:

  1. I clear the cache completely so nothing is already there.
  2. I open (eg) a Question Set activity that uses Question Set 1.17.3 (an older version)
  3. Activity loads in 7 seconds
  4. I edit settings and resave the activity (using 'Save and return to course'). Saving automatically updates the library, so now the activity is Question Set version 1.20.7
  5. I open the activity again.
  6. Activity loads in 22 seconds

From then on, the activity is always slower to load than it was before. For bigger activities (eg columns), the difference is even more pronounced. Do you have any insight into what's causing this? Thank you for your help.