I’m making very simple ajax requests like
$.ajax({
type: "POST",
url: "atuamae.org/send.php",
data: dataString,
success: function() {
//display message back to user here
$('#message').val('');
}
});
and then this php sends it to the database, but this process is taking too long!
what can i do to speed it up?
I have some $_SESSION variables inside the php could that be slowing it down?
You can profile your php code to find out if the bottle neck is in the code.
Simplest way to profile a PHP script
Are you sure it’s in PHP?? I’d assume it is from latency.