php - Ajax requests time in Laravel 5 -
i have question regarding ajax requests time laravel 5. have below code:
$.ajax({ type: "post", cache: false, async: false, url: "/test.php", data: '_token=' + $("#_token").val() + '&idfoselection=' + id, success: function(r){} });
the request time 1ms-2ms. test.php empty file in public folder
if change ajax url route, (url: "/test-ajax") , inside routes.php have:
route::post('test-ajax', ['as' => 'test-ajax', function() { die; }]);
the request time big, 86ms-100ms.
is there way how can improve time using laravel 5? tried apc or php artisan optimise...there small improvement not enough me.
thank you
Comments
Post a Comment