I've been having an issue with one my the servers I'm working on that I don't control.

I just traced the issue down to APC cache and the setting apc.stat=0 , which will not reload any modified files back into the cache until the APC cache is cleared, or the web server is restarted.

I've been running into this problem and I know I'll forget about it and run into it again. To solve this issue, I'd like to add a "Clear APC Cache" menu item into the admin menu and have it run when the "Flush all Caches" parent item is hit.

From reviewing the admin_menu code, it does not appear I'll be able to hook into here, as the caches are all hard coded instead of simple looping through the children and calling the appropriate items.

Is there a way you could extend admin menu to allow other modules to add children under "Flush all Caches" which will get run when the parent item is pressed.

Cheers,
Jordan

Comments

sun’s picture

Status: Active » Closed (duplicate)

Thanks for taking the time to report this issue.

However, marking as duplicate of #588518: Allow contrib modules to hook into admin_menu's "Flush All Caches". Please search for existing issues before submitting a new one.
You can follow up on that issue to track its status instead. If any information from this issue is missing in the other issue, please make sure you provide it over there.