I checked with phpinfo() that APC is installed and enabled:

apc

APC Support enabled
Version 3.0.19
MMAP Support Enabled
MMAP File Mask no value
Locking type pthread mutex Locks
Revision $Revision: 3.154.2.5 $
Build Date Oct 1 2010 23:51:47

, but if I run certain commands like "drush cron" from the command-line, it spews:

/var/www/d6.anything-pages.com/webroot/sites/all/modules/devel/performance/performance.module).
WD php: Warning: Invalid argument supplied for foreach() in performance_apc_list_all() (line 388 of [error]
/var/www/d6.anything-pages.com/webroot/sites/all/modules/devel/performance/performance.module).
Cron run successfully. [success]

Same thing if I try running "drush php-eval 'print_r(apc_cache_info())' from the command line.

What is missing here? Does this mean that APC is not working at all?

Comments

joostvdl’s picture

Same problem here

mradamjohn’s picture

also encountering this issue. verified APC in phpinfo (/admin/reports/status/php) and getting errors on drush and in dblog.

mr.baileys’s picture

Drush runs in the context of the CLI, and by default CLI-support for APC is disabled. You can enable it in your php.ini or apc.ini file:

apc.enable_cli = 1