Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
apc_entries_warning.patch | 630 bytes | MrHaroldA |
Comments
Comment #1
R.Muilwijk CreditAttribution: R.Muilwijk commentedCommitted to 7.x-1.x
Comment #2
twistor CreditAttribution: twistor commentedThis really should have tested to see if DrupalAPCCache exists rather than checking if the cache is empty.
Comment #3
Phizes CreditAttribution: Phizes commentedtwistor: 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).