In another question I asked how to generate routes dynamically in SF2 (Since I want to force prefix on routes), and it works fine:
How to add custom routes to Symfony 2 before container compilation?
The problem is that these routes are not cached, which may be not so good for performance. I wonder if I'm doing something wrong here, and if not perhaps there is a way to ask SF2 to cache my routes?