FriendsOfSymfony / FOSJsRoutingBundle

A pretty nice way to expose your Symfony routing to client applications.
1.48k stars 261 forks source link

Issue with cache and big number of routes #314

Open jdeniau opened 6 years ago

jdeniau commented 6 years ago

Hi,

I just updated to v2, and I issue an error when using the fos_js_routing_js route.

The number of route I have is quite huge (more than 1000, because of jms-i18n-routing-bundle)

The fact is that I have to refresh the cache, the rendering of the route is quite acceptable (~600ms), but if the cache is already written in app/dev/fosJsRouting/data.xx.json, the denormalization of the routes takes too long and triggers a 504.

The only solution I found here is to fork the bundle and deactivate cache usage in debug mode, but maybe there is a better solution ?

Thanks