Server delay to record and access information

Asked

Viewed 54 times

1

Good morning/afternoon/evening everyone, I’m having a problem on two php-mysql sites;

First of all I want you to understand the situation, I own 2 sites that record information on the same basis, the site 1 is hosted on the same server as the base, and the site 2 has a server only for it.

The problem is that the site 1(which has the same base on the same server) it takes about 2-3 seconds to access and record information, already the website 2 (making a connection to the site’s server 1) instantly records.

The codes are not a problem, because even in a simple query has this time difference and both use mysql-connect();

mysql version = 5.5.47;

Thank you.

1 answer

0

  • Check if the queries executed are the same, if you do not have "select" large on Site 1, this may change the speed;
  • Is the Site 1 database host set to "localhost"? If it is configured with a URL and the DNS server is not local, it may be delayed as well;
  • When you open Site 1, you call some Javascript, CSS, etc plugin that is not hosted on the same server?

Browser other questions tagged

You are not signed in. Login or sign up in order to post.