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? :)