Undefined variable $apc_node in DrupalAPCCache::remoteFlush()

Created on 23 January 2017, almost 8 years ago
Updated 29 July 2024, 4 months ago

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 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.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇨🇭Switzerland Luxian Zurich Area

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024