• Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.5.1
    • 2.5, 2.6
    • Backup, Course
    • MOODLE_25_STABLE, MOODLE_26_STABLE
    • MOODLE_25_STABLE
    • wip-MDL-38773-master
    • Hide
      1. Change settings for the front page so all courses and categories list and category combo are all displayed
      2. Create a course backup
      3. Restore course as another course
      4. Make sure courses list and categories list on the front page are updated immediately
      5. Restore course by merging with existing, during restore rename course (don't forget to select "overwrite configuration")
      6. Make sure courses list on the front page is updated immediately
      7. Hide one course
      8. In another window login as student
      9. In first window restore course by merging with existing hidden (don't forget to select "overwrite configuration"). Course should become visible after that
      10. Make sure courses list and categories list on the front page are updated immediately
      11. In student's window make sure the lists are correct too.
      Show
      Change settings for the front page so all courses and categories list and category combo are all displayed Create a course backup Restore course as another course Make sure courses list and categories list on the front page are updated immediately Restore course by merging with existing, during restore rename course (don't forget to select "overwrite configuration") Make sure courses list on the front page is updated immediately Hide one course In another window login as student In first window restore course by merging with existing hidden (don't forget to select "overwrite configuration"). Course should become visible after that Make sure courses list and categories list on the front page are updated immediately In student's window make sure the lists are correct too.

      Course list cache (helps browsing categories) is purged already when any course is added or updated through form or web services. But when course is created or updated as a result of restore, neither create_course() nor update_course() functions is called and course list cache is not purged.

      This is not a huge problem because course list cache has lifetime of 10 minutes anyway.

      To purge caches we only need to call

      cache_helper::purge_by_event('changesincourse');
      

      the only problem is to find where to insert it

            marina Marina Glancy
            marina Marina Glancy
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

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