[ticket/12681] Cache the compiled routes and dump the url_generator

PHPBB3-12681