I could not re-open #1565716: Make "drush cc" clear cache on the webnode itself but this is a small followup for the patch that got committed.

The variable $apc_node is not defined in the DrupalAPCCache::remoteFlush():

      if ($response === FALSE) {
        drush_log('xmlrpc() error: (' . xmlrpc_errno() . ') ' . xmlrpc_error_msg(), 'error');
        if ($base_url == 'http://' . basename(conf_path())) {
          drush_log('The base_url might not be set correctly try using the -l/--uri option for drush.', 'warning');
        }
      }
      elseif (!$response['success']) {
        drush_log('APC could not flush cache(s) because ' . $apc_node . ' returned code ' . $response['message'], 'error');
      }
      else {
        drush_log("APC-Remote $apc_node: {$response['message']}", 'success');
      }

The patch attached is basically replacing it with $uri and the CLI output will look like this:

APC-Remote http://example.com/xmlrpc.php: APC all requested flushes done.

CommentFileSizeAuthor
fix_drush_cc_clear_undefined_variable.patch720 bytesLuxian
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Luxian created an issue.