Principle theories
The cache must be cleared when first add a drupal hook function.
Adding or changing menus in hook_menu function
Whenever you add a menu or change the menu in the hook_menu function, it won't take effect immediately, because it's requiring the Drupal cache to be cleared even if you have disabled drupal cache.
First add hook_theme function in a module or a theme
The cache needs to be cleared when you first add the hook_theme function in you code. After that you don't need to clear it when you change the code in the function.
First add hook_form_FORM_ID_alter/hook_form_alter function
The cache needs to be cleared only when you first add the hook function.
No comments:
Post a Comment