MDL-40806 JavaScript: Add module metadata in JS dev modes

This commit is contained in:
Andrew Nicols 2013-07-21 10:41:49 +01:00
parent ffc3f5308b
commit ce286101f0

View file

@ -1657,6 +1657,7 @@ class YUI_config {
$cache = cache::make('core', 'yuimodules'); $cache = cache::make('core', 'yuimodules');
if (!isset($CFG->jsrev) || $CFG->jsrev == -1) { if (!isset($CFG->jsrev) || $CFG->jsrev == -1) {
$metadata = array(); $metadata = array();
$metadata = $this->get_moodle_metadata();
$cache->delete('metadata'); $cache->delete('metadata');
} else { } else {
// Attempt to get the metadata from the cache. // Attempt to get the metadata from the cache.