After updating my XAMPP to the latest and Laravel to 4.2, this just got fixed by itself.
Very long "Router Dispatch" in Clockwork with Laravel 4 on localhost
-
27-06-2023 - |
Question
I've got a Laravel app setup locally with (what seems to me) very poor performance as you can see below:
My setup:
- W8 on a pretty fast laptop with SSD
- XAMPP 3.2.1
- Laravel 4.1.*
- Clockwork 1.* (only added the controller event as desribed in the docs)
- Debug mode true
The scenario described:
- A logged in user access a page with a list of prospects : 1216ms
- Then the user logs out : 1164ms
- Finally the user is redirected to the login page : 1165ms
As you can see in every single request the bottleneck is the "Router Dispatch" event. What can I do to dig further, and most importantly what can I do to improve its duration?
Or maybe because this is a dev environnment these are expected numbers? (I don't believe so, but I might be wrong).
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow