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

Clean up H5P cacheassets

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • 3.11
    • H5P
    • MOODLE_311_STABLE
    • MDL-70756-master
    • Hide
      1. Create a course
      2. Create h5p activity (you can use attached package)
      3. Go to h5p activity page
      4. Ensure this query returns some results

        SELECT f.id, f.pathnamehash FROM mdl_files f WHERE f.filearea = 'cachedassets';

      5. Run cleanup cron task

        php admin/cli/scheduled_task.php --execute='\core\task\h5p_clean_up_task'
        

      6. Ensure this query returns no results

        SELECT f.id, f.pathnamehash FROM mdl_files f WHERE f.filearea = 'cachedassets';

      7. Go to activity page again
      8. Ensure this query returns some results

        SELECT f.id, f.pathnamehash FROM mdl_files f WHERE f.filearea = 'cachedassets';

      9. Purge caches (you can do it 2 different ways):
        • Go to Site administration->Development->Purge caches and click Purge all caches
        • run this in command line inside your moodle directory (smth like /var/www/moodle)

          php admin/cli/purge_caches.php
          

      10. Ensure this query returns no results

        SELECT f.id, f.pathnamehash FROM mdl_files f WHERE f.filearea = 'cachedassets';

      Show
      Create a course Create h5p activity (you can use attached package) Go to h5p activity page Ensure this query returns some results SELECT f.id, f.pathnamehash FROM mdl_files f WHERE f.filearea = 'cachedassets' ; Run cleanup cron task php admin/cli/scheduled_task.php --execute= '\core\task\h5p_clean_up_task' Ensure this query returns no results SELECT f.id, f.pathnamehash FROM mdl_files f WHERE f.filearea = 'cachedassets' ; Go to activity page again Ensure this query returns some results SELECT f.id, f.pathnamehash FROM mdl_files f WHERE f.filearea = 'cachedassets' ; Purge caches (you can do it 2 different ways): Go to Site administration->Development->Purge caches and click Purge all caches run this in command line inside your moodle directory (smth like /var/www/moodle) php admin/cli/purge_caches.php Ensure this query returns no results SELECT f.id, f.pathnamehash FROM mdl_files f WHERE f.filearea = 'cachedassets' ;
    • Moppies Kanban

      While reviewing MDL-66769 I've seen that cacheassets (component=core_h5p, filearea=cachedassets) are never removed.

      They are temporary files, created to improve performance and they should be removed when caches are purged, when a clean up H5P task is run or in both cases. These files will be regenerated again the first time a user tries to access to the H5P content.
       
       

            ilyatregubov Ilya Tregubov
            sarjona Sara Arjona (@sarjona)
            Carlos Escobedo Carlos Escobedo
            Victor Déniz Falcón Victor Déniz Falcón
            Votes:
            2 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours, 1 minute
                3h 1m

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