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

https://tracker.phpbb.com/browse/PHPBB3-12681

PHPBB3-12681
doc block does not match the function