samedi 19 août 2017

Laravel how does route caching bring about performance optimization

I was going through the documentation at: http://ift.tt/2rf9xFt and it highlights that some time is wasted to register routes of your application, but through route caching one can save a lot of milliseconds.

I wonder why we need a cache file for routes, when all the routes are in web.php file - why shouldn't we just load this file rather than the cache file. What's so special with the cache file that outweighs the web.php file.

Also, why need route registration when the our routes file is already there.

Could someone clarify it for me please! I am not getting the concept.



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2vSxHcm
via IFTTT

Aucun commentaire:

Enregistrer un commentaire