I ran into the issue where theme functions in a newly installed module would not be picked up. The theme cache would clear fine, but (I think) the module_implements() cache didn't, causing the new modules theme hooks to be unregistered.

My suggestion is to add a hook_flush_caches() implementation with just apc_clear_cache() as body. In this way, there is at least a method whereby the cache can be cleared. If this is undesirable, perhaps adding a separate Clear APC button somewhere is a better idea.

Members fund testing for the Drupal project. Drupal Association Learn more


MrHaroldA’s picture

R.Muilwijk’s picture

Status: Active » Postponed (maintainer needs more info)
MrHaroldA’s picture

perhaps adding a separate Clear APC button somewhere is a better idea

That acually is a good idea ;) We maintain an externally hosted site which has apc.stat=0 in it's APC config, so new/changed files aren't picked up unless the APC stat cache is flushed using the apc.php script.

+1 for a "APC flush cache button" in the Drupal APC module!

Jorrit’s picture

Yes, so actually there is a need for two buttons: one for the code, one for the user cache.

R.Muilwijk’s picture

Could someone make a form_alter and add the button next to 'Clear all caches' button?

MrHaroldA’s picture

Status: Postponed (maintainer needs more info) » Needs review
890 bytes

Like this?

MrHaroldA’s picture

Or like this? ;)

R.Muilwijk’s picture

Status: Needs review » Fixed

Committed to dev.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.