FriendsOfSymfony/FOSJsRoutingBundle — pull request #14 by stof (2011-10-09 19:14:27+00:00)
Title: Added a cache for the serialized routes

See #13

My first idea was to dump the final file as a static asset to avoid going through Sf2 but this is really hard as we need to support the callback which is used currently.
So here is a simpler implementation where the controller is still called for each request but where it simply reads the cache file in prod to generate the request (``isFresh`` returns true as soon as the file exists when you are not in debug mode). This implementation also avoids having to use a cache warmer and to guess the needed formats: the cache is created on first need for each format.