Title: (De)Activate Plugins from Command-Line &#8212; Object Cache Problems
Last modified: August 20, 2016

---

# (De)Activate Plugins from Command-Line — Object Cache Problems

 *  [JS Morisset](https://wordpress.org/support/users/jsmoriss/)
 * (@jsmoriss)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/deactivate-plugins-from-command-line-object-cache-problems/)
 * Hi everyone,
 * I wrote a PHP script to activate and deactivate plugins from the command line.
   It appears to work fine, except WP isn’t seeing the changes. After disabling 
   the persistent APC object cache, WP still doesn’t see the changes until I re-
   load the admin plugin web page. I’ve tried using the wp_cache_flush() command(
   and others), but nothing seems to work.
 * Am I missing something obvious here? 🙂
 * [http://surniaulula.com/wp-content/uploads/crayon/wp-plugins.php](http://surniaulula.com/wp-content/uploads/crayon/wp-plugins.php)
 * Thanks,
 * js.

The topic ‘(De)Activate Plugins from Command-Line — Object Cache Problems’ is closed
to new replies.

## Tags

 * [activate](https://wordpress.org/support/topic-tag/activate/)
 * [command line](https://wordpress.org/support/topic-tag/command-line/)
 * [deactivate](https://wordpress.org/support/topic-tag/deactivate/)
 * [object-cache](https://wordpress.org/support/topic-tag/object-cache/)

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 0 replies
 * 1 participant
 * Last reply from: [JS Morisset](https://wordpress.org/support/users/jsmoriss/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/deactivate-plugins-from-command-line-object-cache-problems/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
