function StatusInfoDrush::refresh

8.0.x StatusInfoDrush.php StatusInfoDrush::refresh()
7.x StatusInfoDrush.php StatusInfoDrush::refresh()
master StatusInfoDrush.php StatusInfoDrush::refresh()

Refresh update status information.

Overrides StatusInfoInterface::refresh

File

lib/Drush/UpdateService/StatusInfoDrush.php, line 47
Implementation of 'drush' update_status engine for any Drupal version.

Namespace

Drush\UpdateService

Class

StatusInfoDrush

Code

function refresh() {
  $release_info = drush_include_engine('release_info', 'updatexml');

  // Clear all caches for the available projects.
  $projects = drush_get_projects();
  foreach ($projects as $project_name => $project) {
    $request = pm_parse_request($project_name, NULL, $projects);
    $release_info->clearCached($request);
  }
}