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

Purge all caches feature does not clear course modinfo cache

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      1. Create a course, make note of course <id>
      2. Add a file resource and select options->display->"Open in new window"
      3. OPTIONAL: Perform SQL query "select modinfo from mdl_course where id = <id>;" to verify modinfo javascript cache was added.
      4. Change wwwroot in config.php
      5. Revisit course and click resource link. You should see an error.
      6. OPTIONAL: Perform SQL query "select modinfo from mdl_course where id = <id>;", you should see that modinfo has not been updated.

      Show
      1. Create a course, make note of course <id> 2. Add a file resource and select options->display->"Open in new window" 3. OPTIONAL: Perform SQL query "select modinfo from mdl_course where id = <id>;" to verify modinfo javascript cache was added. 4. Change wwwroot in config.php 5. Revisit course and click resource link. You should see an error. 6. OPTIONAL: Perform SQL query "select modinfo from mdl_course where id = <id>;", you should see that modinfo has not been updated.
    • Affected Branches:
      MOODLE_23_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE
    • Pull Master Branch:
      wip-mdl-35131

      Description

      Purge all caches feature does not clear course modinfo cache. I noticed this problem after changing wwwroot and 'onclick' javascript links were still pointing to the old wwwroot, causing broken links for random resources.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                7 Vote for this issue
                Watchers:
                15 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  13/Jan/14