Difference between hook_boot and hook_init Drupal
HOOK_BOOT
Even cached page executes this hook
This hook is called before modules or most include files are loaded into memory.
It happens while Drupal is still in bootstrap mode.
HOOK_INIT
Cached page doesn’t run this hook.
When this hook is called, all modules are already loaded in memory.
It happens after bootstrap mode.
Comments
Post a Comment