Turn off Javascript Caching

When developing in Moodle, Javascript caching can be a real pain as you generally need to purge caches & reload the page to get the javascript to refresh.

There’s an easy way to turn it off though:

Site Administration > Appearance > AJAX and Javascript

Cache Javascript (cachejs) which is set to YES by default. Turn this off.

You can also find and update the cachejs entry in the mdl_config table or set it in the config.php file. Just remember to purge your cache to ensure it takes effect.

Revision #2
Created Mon, Jul 22, 2019 11:55 AM by Moodle Wiki
Updated Thu, Jul 25, 2019 4:04 PM by Moodle Wiki