original_string: public static function update_definitions($coreonly = false) {
          global $CFG;
          // Include locallib.
          require_once($CFG->dirroot.'/cache/locallib.php');
          // First update definitions
          cache_config_writer::update_definitions($coreonly);
          // Second reset anything we have already initialised to ensure we're all up to date.
          cache_factory::reset();
      }
code: public static function update_definitions($coreonly = false) {
          global $CFG;
          // Include locallib.
          require_once($CFG->dirroot.'/cache/locallib.php');
          // First update definitions
          cache_config_writer::update_definitions($coreonly);
          // Second reset anything we have already initialised to ensure we're all up to date.
          cache_factory::reset();
      }
code_tokens: public static function update_definitions ( $ coreonly = false ) { global $ CFG ; // Include locallib. require_once ( $ CFG -> dirroot . '/cache/locallib.php' ) ; // First update definitions cache_config_writer :: update_definitions ( $ coreonly ) ; // Second reset anything we have already initialised to ensure we're all up to date. cache_factory :: reset ( ) ; }
docstring: Finds all definitions and updates them within the cache config file.
  
  @param bool $coreonly If set to true only core definitions will be updated.
docstring_tokens: Finds all definitions and updates them within the cache config file .