Enabling the module isn't enough to use it: you also have to enable the cache backend in your settings.php file. APC never issues a warning if you don't and even tells everything is REQUIREMENT_OK once enabled (and apc.so is loaded).

This patch changes the REQUIREMENT_OK into REQUIREMENT_WARNING when there are 0 cache entries.

apc_entries_warning.patch630 bytesMrHaroldA
Members fund testing for the Drupal project. Drupal Association Learn more


R.Muilwijk’s picture

Status: Needs review » Closed (fixed)

Committed to 7.x-1.x

twistor’s picture

This really should have tested to see if DrupalAPCCache exists rather than checking if the cache is empty.

Phizes’s picture

twistor: If I am correct, and /drupal_apc_cache.inc is included in settings.php, DrupalAPCCache will still exist, even when Drupal is run from the CLI (see the beginning of /drupal_apc_cache.inc).