Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
fix_drush_cc_clear_undefined_variable.patch | 720 bytes | Luxian |
Comments