$cache = cache::make('core', 'yuimodules');
if (!isset($CFG->jsrev) || $CFG->jsrev == -1) {
$metadata = array();
+ $metadata = $this->get_moodle_metadata();
$cache->delete('metadata');
} else {
// Attempt to get the metadata from the cache.
*/
function js_reset_all_caches() {
global $CFG;
- require_once("$CFG->libdir/filelib.php");
$next = time();
if (isset($CFG->jsrev) and $next <= $CFG->jsrev and $CFG->jsrev - $next < 60*60) {
}
set_config('jsrev', $next);
- fulldelete("$CFG->cachedir/js");
}