Posts made by Visvanath Ratnaweera

Picture of Particularly helpful Moodlers Picture of Translators
I was called to clean a mess in data more than once in the recent times and thinking that the system administrator job is similar to a street sweeper. Now I feel confirmed. It explains why Beppo (of Momo fame) was a hero!
 
Seriously,
> When an H5P activity is viewed for the first time, Moodle automatically generates an export `.h5p` file and stores it in `mdl_files` with:
>
> - `component = core_h5p`
> - `filearea = export`
> - `contextlevel = 10` (system context)
>
> This is by design and functions correctly. The problem occurs when an H5P activity is
**deleted** — Moodle removes the activity record from `mdl_h5p` but does **not** delete the corresponding export file from `mdl_files` or from disk.
 
That is indeed a bug in the size of a mammoth.

> The scheduled task `\core\task\h5p_clean_orphaned_records_task` exists but does not handle cleanup of these orphaned export file records. This is the known gap described in MDL-70700.
 
There it is - since Moodle 3.x, not assigned to anybody, priority low. Must be dead, only a fossil now. We can put it to display together with the exploding PDFs and exponentially multiplying quiz questions.
sad
 
Edit: Almost missed posting it. I thought "Save the changes" saved the post, whereas way, way down at the bottom of the page it was waiting with this, now well-known red-and-green flag:
 
Picture of Particularly helpful Moodlers Picture of Translators
I don't know whether related, but this rating is 10 min old, nothing happening:
 
 
I am posting this in a separate tab of the same browser.
 
Yeah, yeah. An excuse to say, people don't want to write forum posts anymore!
sad
 
Edit: When I visit the thread in a third tab, I see that the rating has been recorded:
 
 
But the first tab still doesn't show it (still at the first screenshot).
 
Edit of edit: Saving this post landed in "Please tick the box to verify you are human" with the "box" (the green circle) already ticked,
 
Edit of edit of edit: Needed another iteration.
 
Edit of edit of edit of edit: Trying to see who rated the post (me), I landed in this:
 
 
But I posted two posts in the last 10 minutes and editing and saving this very post!
sad((
Picture of Particularly helpful Moodlers Picture of Translators

Which box, do tell me! 

Don't tell me this is a poor Internet connection. 

BTW, the figures corr. to my wireless connection. If I connect the laptop to the router by cable, I am in the 800-900 Mbits/s range, again since the Ethernet connection is 1 Gbit/s "only". The router has a 10 Gbit/s port but my laptop doesn't.

Picture of Particularly helpful Moodlers Picture of Translators
I assume this is why you had to analyze the code: Restoring course is very slow.
 
Although it is an exceptionally bis course, it is also a chance to improve the performance of Moodle for everybody. Linking it here since that information is relevant when the developers look in to this issue.