Difference between hook_boot and hook_init Drupal

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