Quoting Karoly Negyesi <karoly@negyesi.net>:
But the routing is built only when visiting some pages or after emptying the cache.
Wrong. No matter how much cache you clear, the menu_router table won't be rebuilt. This is why I stepped in: I do not want false information to be spread. Indeed specific admin pages trigger a menu rebuild and that's it.
So when is hook_menu called? I use the devel module to ``Empty Cache'' to cause new items in my custom module to be generated on the menu. The hook_menu isn't called until I ``Empty Cache''. So it appears to from the DX perspective that emptying the cache rebuilds the menu. -- Earnie -- http://r-feed.com/ -- http://for-my-kids.com/ -- http://www.4offer.biz/ -- http://give-me-an-offer.com/