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

Clean up the orphan or unused h5p export files

    XMLWordPrintable

Details

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

    Description

      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";
      

       

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              cescobedo Carlos Escobedo
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: