Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.5, 2.6
    • Fix Version/s: 2.5.1
    • Component/s: Backup, Course
    • Labels:
    • Testing Instructions:
      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.
    • Affected Branches:
      MOODLE_25_STABLE, MOODLE_26_STABLE
    • Fixed Branches:
      MOODLE_25_STABLE
    • Pull Master Branch:
      wip-MDL-38773-master

      Description

      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

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    8/Jul/13