You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just figured out that calling the fos_js_routing_js will trigger a cache write in the %kernel.project_dir%/var/cache/%kernel.environment%/fosJsRouting directory (which doesn't exist in case of a cache miss).
This has 2 drawbacks:
Routes have to be computed during the user's request, which can impact performance even if it should be done only 1 time per deployment
Hey there,
I just figured out that calling the
fos_js_routing_js
will trigger a cache write in the%kernel.project_dir%/var/cache/%kernel.environment%/fosJsRouting
directory (which doesn't exist in case of a cache miss).This has 2 drawbacks:
Why not implementing a
Symfony\Component\HttpKernel\CacheWarmer\WarmableInterface
service which would hook on thecache:clear
and thecache:warmup
commands to write everything needed during deployment and/or cache clear/warmup?Pre-requisites are prior knowledge of all the locales used but this can be achieved through the bundle configuration.
What are your thoughts?
The text was updated successfully, but these errors were encountered: