Closes #3276561. It takes patch #11 and adds caching to the getRouteResourceTypes() method, as that was causing issues on sites with a large number of menus.