original_string: public static function update_definitions($coreonly = false) {
          $factory = cache_factory::instance();
          $factory->updating_started();
          $config = $factory->create_config_instance(true);
          $config->write_definitions_to_cache(self::locate_definitions($coreonly));
          $factory->updating_finished();
      }
code: public static function update_definitions($coreonly = false) {
          $factory = cache_factory::instance();
          $factory->updating_started();
          $config = $factory->create_config_instance(true);
          $config->write_definitions_to_cache(self::locate_definitions($coreonly));
          $factory->updating_finished();
      }
code_tokens: public static function update_definitions ( $ coreonly = false ) { $ factory = cache_factory :: instance ( ) ; $ factory -> updating_started ( ) ; $ config = $ factory -> create_config_instance ( true ) ; $ config -> write_definitions_to_cache ( self :: locate_definitions ( $ coreonly ) ) ; $ factory -> updating_finished ( ) ; }
docstring: Updates the definition in the configuration from those found in the cache files.
  
  Calls config_save further down, you should redirect immediately or asap after calling this method.
  
  @param bool $coreonly If set to true only core definitions will be updated.
docstring_tokens: Updates the definition in the configuration from those found in the cache files .