I follow topic to create dynamic routes. Examples i have a form, when user click submit form. new route will be created. It's working. But after clear cache by UI (or function drupal_flush_all_caches()). I want this auto but don't want use drupal_flush_all_caches() because it's very slow. So maybe i use other function to clear cache routing.