Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-70700

Clean up the orphan or unused h5p export files

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 3.9.4, 3.10.1, 3.11, 4.4.1
    • H5P
    • MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_39_STABLE, MOODLE_404_STABLE

      As a consequence of MDL-66769 where we have developed a task to clean up the orphan or unuse H5P content when some activity/resource was been removed, we need to remove the unused h5p export files which are linked to system context.

      In order to remove these files, we have to be sure that we could identify in the right way. For instance, taking a look at this function (get_export_info_from_context_id) we could figure out how to do it.

      This is how is the filename is built:

      $filename = "{$slug}{$content['id']}.h5p";
      

       

       

            Unassigned Unassigned
            cescobedo Carlos Escobedo
            Votes:
            4 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.