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

Prevent Minify from caching things (even more)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 2.6
    • JavaScript
    • MOODLE_26_STABLE
    • 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.

      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.
      

            dobedobedoh Andrew Lyons
            timhunt Tim Hunt
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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