4

If I implement a new hook which cache type(like menu, css+js, etc) should I clear for the changes to take effect?

1
7

If you look at the module_implements() function, it uses the following code to reset the hook cache:

cache_set('module_implements', array(), 'cache_bootstrap');
drupal_static_reset('module_hook_info');
drupal_static_reset('drupal_alter');
cache_clear_all('hook_info', 'cache_bootstrap');

You can just use the same code to do it yourself.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.