I think all hooks need the cache tto be cleared to work (or at least I thought until now), but it seems that these particular hooks don't need the cache to be cleared. I tried this even on a clean Drupal 7 installation.

Does anybody knows how this magic happens? I thought may be cache iscleared when files or nodes are saved, but I didn't see that.

  • Do you mean to clear the cache to make Drupal notice there is a new hook implementation? Did you try editing an enabled module, add that hook, and see if Drupal invokes it too? Are you sure that you don't do something that causes the cache to be cleared? There some pages that do that. – kiamlaluno Dec 9 at 8:59
  • Yes. But it's not needed for file hooks it seems and that's interesting to me. I thought it might be contrib module so I tried the same thing on clean install. Same applies. – Hannes Kirsman Dec 10 at 7:17

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.