The DrupalApcCache class assumes that any request to clear the cache done from the command line is done from Drush, and the request needs to be executed via the HTTP server, but that is not always the case. For example, when tests run from the command line, the request to clear the cache should be immediately handled. There could be any other cases where sending the request to the HTTP server instead of handling it causes issues.

The correct way to to remove APCu data for the server is implementing a new Drush command, for example drush apc-clear, which could also be generally used to clear any data stored on APCu.
For the moment, I am going to remove the Drush support.

Issue fork apc-3466111

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

avpaderno created an issue. See original summary.

avpaderno’s picture

Title: Remove the Drush support » Remove Drush support
avpaderno’s picture

Priority: Normal » Minor
Status: Active » Needs review

avpaderno’s picture

Status: Needs review » Fixed
avpaderno’s picture

Issue summary: View changes

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.