Reputation: 15
I'm working with moodle open source code. It is running on my machine with Ubuntu 16.04 and apache2 as explained on their installation guide. My problem occurs when i change a javascript file, the code changed does not appear updated on the browser (chrome dev tools). Even if i delete the file, browser continue to show me the file code in the source tree (after refresh, and clearing the broser cache). Am I missing a step, on this edition of javascript files in Moodle structure?
Thanks in advance!
Upvotes: 0
Views: 1024
Reputation: 6327
Javascript is cached - you need to purge all site caches to see changes. If debugging is off and you are using an AMD module (as all modern Moodle javascript does) or a YUI module (as used by older Moodle code), then you will need to use grunt to to minify the javascript before it can be used.
Upvotes: 1