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

Prevent Minify from caching things (even more)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.6
    • Fix Version/s: None
    • Component/s: JavaScript
    • Labels:
    • Testing Instructions:
      Hide

      Ensure that in your config.php you have:

      unset($CFG->jsrev);
      $CFG->cachejs = true;
      

      • View page source of any page in Moodle
      • Confirm that both yui*configFns have value. These are in the header. One belongs to YUI2in3 and the other to Moodle's YUI inclusion
      • Clear your cache using the CLI cache purger
      • On the first page view, confirm that the configfns are still correct.
      Show
      Ensure that in your config.php you have: unset($CFG->jsrev); $CFG->cachejs = true; View page source of any page in Moodle Confirm that both yui*configFns have value. These are in the header. One belongs to YUI2in3 and the other to Moodle's YUI inclusion Clear your cache using the CLI cache purger On the first page view, confirm that the configfns are still correct.
    • Affected Branches:
      MOODLE_26_STABLE
    • Pull Master Branch:

      Description

      I just updated to the lastest weekly build on Master. Now, none of the JavaScript works on any page.

      In the Console I see

      Uncaught TypeError: Cannot read property 'theme_bootstrapbase' of undefined javascript.php?theme=clean&rev=-1&type=footer:4

      That is the line of code:

      YUI().use('moodle-theme_bootstrapbase-bootstrap', function(Y) {
          Y.Moodle.theme_bootstrapbase.bootstrap.init();
      });
      

      Looking for where that should be defined, I see that

      .../theme/yui_combo.php?moodle/-1/moodle-theme_bootstrapbase-bootstrap/moodle-theme_bootstrapbase-bootstrap-debug.js

      is being loaded (with a 200 HTTP code), but all that file conains is

       
      // Incorrect moodle module inclusion. Not enough component information in moodle/-1/moodle-theme_bootstrapbase-bootstrap/moodle-theme_bootstrapbase-bootstrap-debug.js.
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: