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

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - Bypass Geo Redirect for specific directories -

php - .htaccess mod_rewrite for dynamic url which has domain names -